home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / file_mgt / locate / locate.doc < prev    next >
Encoding:
Text File  |  1994-08-31  |  152.5 KB  |  3,451 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                  ██
  7.                  ██     ▄████▄ ▄████▄ ▄████▄ ███████ ██████
  8.                  ██     █    █ █    ▀ █    █ ▀  █  ▀ █
  9.                  ██     █    █ █      █    █    █    █████
  10.                  ██     █    █ █      █▄▄▄▄█    █    █
  11.                  ██     █    █ █    ▄ █    █    █    █
  12.                  ██████ ▀████▀ ▀████▀ █    █   ███   ██████
  13.                  ──────────────────────────────────────────
  14.                       File Find and Maintenance Utility
  15.                  ──────────────────────────────────────────
  16.                                 Version 2.11
  17.  
  18.  
  19.  
  20.                          ═══ Instruction Guide ═══
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.                             Donald Ray Hutchins
  38.                           System Solutions Company
  39.                              4409 Ansley Drive
  40.                         Winston-Salem, NC 27107-7671
  41.  
  42.  
  43.                              Copyright (c) 1993
  44.                Donald Ray Hutchins, System Solutions Company
  45.          All Rights Reserved - Unauthorized Duplication Prohibited
  46.  
  47.  
  48.                            ┌─────────┐
  49.                      ┌─────┴───┐     │               (R)
  50.                    ──│         │o    │──────────────────
  51.                      │   ┌─────┴╨──┐ │  Association of
  52.                      │   │         │─┘  Shareware
  53.                      └───│    o    │    Professionals
  54.                    ──────│    ║    │────────────────────
  55.                          └────╨────┘    MEMBER
  56.  
  57.  
  58.                                                            Copyright Notice
  59.      ──────────────────────────────────────────────────────────────────────
  60.  
  61.      LOCATE is  Copyright, 1993  by Donald  Ray Hutchins,  System Solutions
  62.      Company.  All rights  are reserved.  LOCATE is shareware.   Please see
  63.      Appendix C, page 53, for a description of shareware.
  64.  
  65.  
  66.                                                         Warranty Disclaimer
  67.      ──────────────────────────────────────────────────────────────────────
  68.  
  69.      System Solutions Company  makes no warranty of any  kind, expressed or
  70.      implied,    including   without    limitation   any    warranties   of
  71.      merchantability and/or fitness for a particular purpose.
  72.  
  73.      System Solutions Company does not assume any  liability for the use of
  74.      this software beyond the original purchase price of this software.
  75.  
  76.      In  no event will  System Solutions Company  be liable to  you for any
  77.      additional damages, including any lost profits, lost savings, or other
  78.      incidental  or  consequential  damages arising  from  the  use  of, or
  79.      inability  to use, this  software and its  accompanying documentation,
  80.      even if System  Solutions Company has been advised  of the possibility
  81.      of such damages.
  82.  
  83.  
  84.                                                          Manual Conventions
  85.      ──────────────────────────────────────────────────────────────────────
  86.  
  87.      This section  outlines type-conventions in this guide.  Filenames will
  88.      be  printed in all CAPs i.e., LOCATE.EXE.   Commands (things you type)
  89.      also will be in all CAPs.  Parameters or options will be surrounded by
  90.      <angled braces>.  Optional parameters or options (usually specified as
  91.      part of a command) will be surrounded by [square braces].
  92.  
  93.  
  94.                                                      About System Solutions
  95.      ──────────────────────────────────────────────────────────────────────
  96.  
  97.      System  Solutions Company  is  owned  by Donald  Ray  Hutchins and  is
  98.      located in Winston-Salem,  North Carolina.  System  Solutions provides
  99.      system development  and consulting  services to  local North  Carolina
  100.      companies.
  101.  
  102.      Donald  Ray Hutchins  is  a  member of  the  Association of  Shareware
  103.      Professionals  (ASP).  Please refer  to Appendix D,  page 54, for more
  104.      information on the ASP.
  105.  
  106.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  107.      │   To find out how to contact Donald Ray Hutchins at System        │▄
  108.      │   Solutions Company, please refer to Appendix E, page 55.         │█
  109.      └───────────────────────────────────────────────────────────────────┘█
  110.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  111.  
  112.  
  113.                                                           Table of Contents
  114.      ──────────────────────────────────────────────────────────────────────
  115.  
  116.      Chapter 1: Introduction . . . . . . . . . . . . . . . . . . . . .    1
  117.           Description  . . . . . . . . . . . . . . . . . . . . . . . .    1
  118.           Features Summary . . . . . . . . . . . . . . . . . . . . . .    1
  119.           What's New in This Release . . . . . . . . . . . . . . . . .    2
  120.  
  121.      Chapter 2: Getting Started  . . . . . . . . . . . . . . . . . . .    4
  122.           System Requirements  . . . . . . . . . . . . . . . . . . . .    4
  123.           Network Support  . . . . . . . . . . . . . . . . . . . . . .    4
  124.           Installing LOCATE  . . . . . . . . . . . . . . . . . . . . .    4
  125.           Using Command-Line Options . . . . . . . . . . . . . . . . .    4
  126.                Entering the File Specification . . . . . . . . . . . .    5
  127.                Using the Extended Wildcard Option  . . . . . . . . . .    5
  128.           The LOCATE File Display  . . . . . . . . . . . . . . . . . .    6
  129.           Interrupting LOCATE  . . . . . . . . . . . . . . . . . . . .    7
  130.           Setting LOCATE Defaults  . . . . . . . . . . . . . . . . . .    7
  131.  
  132.      Chapter 3: Searching for Files  . . . . . . . . . . . . . . . . .   11
  133.           Controlling the Scope of File Searches . . . . . . . . . . .   11
  134.                /C Option: Current Directory Only . . . . . . . . . . .   11
  135.                /S Option: Current Directory and Under  . . . . . . . .   11
  136.                /DIR Option: Include Directory Entries  . . . . . . . .   12
  137.                /V= Option: Volume/ Drive List  . . . . . . . . . . . .   12
  138.                /PATH Option: Search DOS PATH or NetWare Search MAP . .   12
  139.           Miscellaneous Options  . . . . . . . . . . . . . . . . . . .   13
  140.                /P Option: Pause Display  . . . . . . . . . . . . . . .   13
  141.                /Q Option: Quiet Display  . . . . . . . . . . . . . . .   13
  142.                /CD Option: Change Directory  . . . . . . . . . . . . .   14
  143.                /AUTO Option: Suppress Confirmation Prompts . . . . . .   14
  144.                /### Option: Maximum Files to List or /SET  . . . . . .   14
  145.                /R Option: Registration Information . . . . . . . . . .   15
  146.           Advanced Search Options  . . . . . . . . . . . . . . . . . .   15
  147.                /S= Option: File Size Limit . . . . . . . . . . . . . .   15
  148.                /D= Option: Last Modify Date  . . . . . . . . . . . . .   16
  149.                /D NOT= Option: Last Modify Date  . . . . . . . . . . .   18
  150.                /AGE= Option: Last Modify Date  . . . . . . . . . . . .   19
  151.                /T= Option: Last Modify Time  . . . . . . . . . . . . .   19
  152.                /T NOT= Option: Last Modify Time  . . . . . . . . . . .   20
  153.                /A= Option: File Attributes . . . . . . . . . . . . . .   21
  154.                /O= Option: File Owner  . . . . . . . . . . . . . . . .   22
  155.                /O NOT= Option: NOT File Owner  . . . . . . . . . . . .   24
  156.                /TEXT Option: File Contents . . . . . . . . . . . . . .   24
  157.  
  158.      Chapter 4: Using /SET Options . . . . . . . . . . . . . . . . . .   27
  159.           Overview of /SET Options . . . . . . . . . . . . . . . . . .   27
  160.                /SETD= Option: Set File Date  . . . . . . . . . . . . .   28
  161.                /SETT= Option: Set File Time  . . . . . . . . . . . . .   29
  162.                /SETA= Option: Set File Attributes  . . . . . . . . . .   29
  163.                /SETO= Option: Set File Owner . . . . . . . . . . . . .   31
  164.           Network Considerations for Using /SET Options  . . . . . . .   31
  165.  
  166.  
  167.  
  168.      Chapter 5: Deleting Files with /DEL . . . . . . . . . . . . . . .   32
  169.           Overview of /DEL Option  . . . . . . . . . . . . . . . . . .   32
  170.  
  171.      Chapter 6: Using the /BATCH and /RUN Options  . . . . . . . . . .   33
  172.           Overview of /BATCH Option  . . . . . . . . . . . . . . . . .   33
  173.           Overview of /RUN Option  . . . . . . . . . . . . . . . . . .   34
  174.           Using the Replacement Tokens . . . . . . . . . . . . . . . .   34
  175.           Creating Batch Files . . . . . . . . . . . . . . . . . . . .   35
  176.  
  177.      Chapter 7: Miscellaneous Topics . . . . . . . . . . . . . . . . .   37
  178.           Network Access Requirements  . . . . . . . . . . . . . . . .   37
  179.           Alternate Option Specifications  . . . . . . . . . . . . . .   38
  180.           Redirecting Output . . . . . . . . . . . . . . . . . . . . .   39
  181.           Error Messages . . . . . . . . . . . . . . . . . . . . . . .   40
  182.           Common Questions . . . . . . . . . . . . . . . . . . . . . .   45
  183.  
  184.      Appendix A: Registration Information  . . . . . . . . . . . . . .   49
  185.           How to Register  . . . . . . . . . . . . . . . . . . . . . .   49
  186.           Cost of Registration . . . . . . . . . . . . . . . . . . . .   49
  187.           Upgrade Information  . . . . . . . . . . . . . . . . . . . .   50
  188.           Benefits of Registration . . . . . . . . . . . . . . . . . .   50
  189.  
  190.      Appendix B: Limited Distribution License  . . . . . . . . . . . .   52
  191.           Important Provisions . . . . . . . . . . . . . . . . . . . .   52
  192.  
  193.      Appendix C: Description of Shareware  . . . . . . . . . . . . . .   53
  194.  
  195.      Appendix D: The Association of Shareware Professionals  . . . . .   54
  196.  
  197.      Appendix E: Contacting System Solutions Company . . . . . . . . .   55
  198.           Comments and Suggestions . . . . . . . . . . . . . . . . . .   55
  199.  
  200.      Appendix F: Trademarks and Copyrights . . . . . . . . . . . . . .   56
  201.  
  202.  
  203.                                                     Chapter 1: Introduction
  204.      ──────────────────────────────────────────────────────────────────────
  205.  
  206.      Description
  207.      ═══════════
  208.      Welcome to LOCATE,  version 2.11!  LOCATE  is a DOS file  location and
  209.      maintenance utility.   If you are saying  to yourself, ". .  . another
  210.      file find  utility . . .",  then please read on.   LOCATE stands above
  211.      other  commercial  and  shareware  utilities   by  offering  extremely
  212.      flexible options without degradations in performance.
  213.  
  214.  
  215.      Features Summary
  216.      ════════════════
  217.      LOCATE allows you to locate files quickly and easily.  You may specify
  218.      a starting path,  scan only the current  directory, or begin the  scan
  219.      from the root.   Multiple  volumes may  be scanned in  a single  pass.
  220.      LOCATE will even search the DOS PATH (and the NetWare Search MAP).
  221.  
  222.      Restricting the  scan to  only files that  meet specific  criterion is
  223.      easy using LOCATE's flexible parameters.  You may restrict the scan by
  224.      specifying file attributes, the file  date stamp, the file time stamp,
  225.      the file size, and  even the owner (under Novell NetWare).   Also, You
  226.      may find files that fall within  a range of criterion (date, time,  or
  227.      size), i.e., all files last modified between 6-15-92 and 6-20-92.
  228.  
  229.      In addition to these features, LOCATE supports a powerful SET function
  230.      that allows  you to change  file properties as files  are located; you
  231.      may change file attributes  (ON or OFF),  the file owner under  Novell
  232.      NetWare, the last modify date, and/or the last modify time.
  233.  
  234.      For Novell NetWare users, LOCATE displays the owner for each file.  In
  235.      addition, you  may restrict the  file scan to  files owned by  (or NOT
  236.      owned by) any valid user.   As stated, the SET function allows  you to
  237.      change the owner for files matching a LOCATE search specification.
  238.  
  239.      Many  advanced options  are supported,  including  searching for  text
  240.      within  files,  searching  for  files  that  contain  text  within the
  241.      filename, and  building batch files  or running commands based  on the
  242.      file search.
  243.  
  244.      LOCATE offers  features and  functionality that you  will not  find in
  245.      competing  products.  In addition, LOCATE is distributed as shareware;
  246.      so you can test drive the software before you make a purchase decision
  247.      (see Appendix C, page 53, for a description of the shareware concept).
  248.  
  249.      All this  and more  is tightly packaged  in an  intuitive command-line
  250.      interface that both power users and novice users can master with ease.
  251.      LOCATE may be  customized so that you  don't have to keep  re-entering
  252.      the  command line  options.   This  gives you  the power  to establish
  253.      permanent  defaults  for  many  LOCATE  options  that  you can  easily
  254.      override (in whole or in part) on the command-line.
  255.  
  256.  
  257.      ══════════════════════════════════════════════════════════════════════
  258.      LOCATE: version 2.10                                            page 1
  259.  
  260.  
  261.      What's New in This Release
  262.      ══════════════════════════
  263.      For  a complete  list of  new features,  please see  the documentation
  264.      file, HISTORY.DOC.  The highlights of version 2.x are outlined in this
  265.      section.  All  restrictions in previous  shareware versions have  been
  266.      removed.   In addition, all  features are  documented and  distributed
  267.      with the shareware version.
  268.  
  269.      The problems  with the  /OWNER flag (under  Novell NetWare)  in multi-
  270.      server environments has been fixed.
  271.  
  272.      Color has been added to all displays (you can still redirect output to
  273.      a  printer/device or a file).  Note that LOCATE maintains your current
  274.      background color for all displays if  possible.  In addition, you  may
  275.      now optionally supress the abbreviated path names resulting  from very
  276.      long (or deeply nested) directory paths.
  277.  
  278.      Many operations  are faster than  in previous versions.   In addition,
  279.      error detection has  been improved considerably.  LOCATE  now offers a
  280.      <R>etry option for critical errors (disk or printer not ready, etc).
  281.  
  282.      The new "extended wildcard" support  allows you to find files where  a
  283.      search specification occurs anywhere in the  FILE[.EXT].  For example,
  284.      "LOCATE *92"  finds all  files where  "92"  is found  anywhere in  the
  285.      filename or extension (92DATA.DAT, FILE92.ARC, LIST.92, etc.).
  286.  
  287.      LOCATE now allows you to customize default  behavior by defining a DOS
  288.      environment  variable  (called  "LOCATE").   This  allows  you  to set
  289.      defaults for many LOCATE options (/S, /P, /Q, /M, /BIOS, /DIR, /NONET,
  290.      /TL###, /[NO]OCCUR, /[NO]CASE, /[L]ONG).
  291.  
  292.      LOCATE  now  allows you  to search  for  text within  files.   You may
  293.      optionally list the number of occurrences per file.   In addition, you
  294.      may  select  to display  the  offset within  the  file  and the  bytes
  295.      surrounding the search text.   You can use this feature  when you know
  296.      the contents of a  file but you are not sure of the name.  Programmers
  297.      can use  this feature  to find  all programs  that contain  a specific
  298.      function, etc.
  299.  
  300.      You can  build batch files using the new  /BATCH option.  For example,
  301.      you may wish to find all files  that meet specific criterion, and copy
  302.      each file to  a backup directory.   You simply specify the  batch file
  303.      command format (i.e., "COPY <filename here> C:\BACKUP\*.*") and locate
  304.      builds the batch  file as files are found.  In  addition, the new /RUN
  305.      option allows you  to run a specified command  immediately on selected
  306.      files.
  307.  
  308.      If you want to  delete files, you can use the  new /DEL option (you'll
  309.      be prompted first).
  310.  
  311.      The /C option now forces LOCATE to search the current directory  ONLY;
  312.      /S has been added to search the current directory and under.
  313.  
  314.  
  315.      ══════════════════════════════════════════════════════════════════════
  316.      LOCATE: version 2.10                                            page 2
  317.  
  318.  
  319.      The  new  /DIR option  allows  you  to  include directory  entries  in
  320.      searches.
  321.  
  322.      You can  find files last  modified within  a specified number  of days
  323.      using the /AGE= option.
  324.  
  325.      To jump to the directory of the first find, use the new /CD option.
  326.  
  327.      The  new /AUTO  option can  be used  to suppress  initial confirmation
  328.      prompts when using /SET, /DEL, /BATCH, or /RUN options.
  329.  
  330.      Use the new /### option to  limit the number of files that  are listed
  331.      and/or /SET by LOCATE (for example, /1 stops after the first file).
  332.  
  333.      The  new /DATE  NOT= and /TIME  NOT= options  allow you to  search for
  334.      files where the  modification date and/or time is  any date/time other
  335.      than the  specified value.   In addition, new  keywords make  date and
  336.      time filters  more flexible (TODAY,  NOW, DATE CREATED  (for NetWare),
  337.      and TIME CREATED (for NetWare)).
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.      ══════════════════════════════════════════════════════════════════════
  374.      LOCATE: version 2.10                                            page 3
  375.  
  376.  
  377.                                                  Chapter 2: Getting Started
  378.      ──────────────────────────────────────────────────────────────────────
  379.  
  380.      System Requirements
  381.      ═══════════════════
  382.      LOCATE requires an IBM-PC, IBM-PC/AT, or 100% compatible computer with
  383.      at least 95 Kbytes of available memory.  For some options, as  much as
  384.      125 Kbytes of memory must be available.  You must be running MS-DOS or
  385.      PC-DOS  version   3.0  or  higher.     There  is   no  display/monitor
  386.      restrictions.   A hard  disk is not  required.   In order  to use  the
  387.      NetWare (owner) options, you must be running Advanced NetWare  version
  388.      2.1 or higher.
  389.  
  390.  
  391.      Network Support
  392.      ═══════════════
  393.      You must purchase a Network  Site License in order to use  LOCATE in a
  394.      local area network  environment.  Please refer to  Appendix A, page 49
  395.      for more  information.   LOCATE  is  completely compatible  with  most
  396.      network environments.   LOCATE  offers added  functionality for  users
  397.      under  Novell NetWare,  Advanced  2.1x -  3.11.   Note  that for  some
  398.      network options,  you must have  minimum rights or  access privileges.
  399.      See "Network Access Requirements", page 37, for detailed information.
  400.  
  401.  
  402.      Installing LOCATE
  403.      ═════════════════
  404.      To install LOCATE on your computer, simply copy the distribution file,
  405.      LOCATE.EXE, to any directory in your PATH  or NetWare Search MAP.  See
  406.      your  DOS documentation  for  detailed information  on  the DOS  PATH.
  407.      Enter LOCATE (or LOCATE /?) for a quick summary of all options.
  408.  
  409.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  410.      │   You are encouraged to read this manual before using LOCATE;     │▄
  411.      │   this ensures that you will get the most from the program.       │█
  412.      │   Space restrictions on the online /? help screen prevent a       │█
  413.      │   complete description of options and features.                   │█
  414.      └───────────────────────────────────────────────────────────────────┘█
  415.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  416.  
  417.  
  418.      Using Command-Line Options
  419.      ══════════════════════════
  420.      LOCATE allows a high level of flexibility in the format of the command
  421.      line options.  The general form of the LOCATE command is:
  422.  
  423.           LOCATE [drive:][path\][*][file].[ext] [options...]
  424.                                  │       │     │    └─ spaces here optional
  425.                                  │       │     └─ one space required here
  426.                                  │       └─ minimum specification is "."
  427.                                  └─ extended wildcard option
  428.  
  429.  
  430.  
  431.      ══════════════════════════════════════════════════════════════════════
  432.      LOCATE: version 2.10                                            page 4
  433.  
  434.  
  435.      You may  omit most of the file  specification; the only requirement is
  436.      that you provide some part of the path or filename (a single period at
  437.      a minimum  - "." is the same  as "*.*").  Note that  you must place at
  438.      least one space between the file specification and the first option.
  439.  
  440.      All  white space and extra characters  WITHIN options are ignored.  In
  441.      addition,  the order  of options  is  generally not  important.   Most
  442.      options  support several variations of  the same parameter (i.e., file
  443.      size  may be  specified with  /S and  /SIZE).   For  more information,
  444.      please see "Alternate Option Specifications" in Chapter 7 (page 38).
  445.  
  446.      When specifying command-line options,  you should place the slash  "/"
  447.      character before each option.   As stated above, you  are not required
  448.      to place space  between options (only  between the file  specification
  449.      and  the first  option).    You may  place  space  within options  for
  450.      readability if you like.
  451.  
  452.      Entering the File Specification
  453.      ───────────────────────────────
  454.      As stated above, you must enter at least "." for a file specification,
  455.      i.e., "LOCATE ." means find files  matching "*.*".  When you omit  any
  456.      part  if the filename  or extension,  "*" is  generally assumed.   The
  457.      following  examples  illustrate  sample  commands and  the  associated
  458.      assumptions  that  LOCATE  makes.     See  Chapter  3,  page  11,  for
  459.      instructions  on  controlling  the scope  of  directories  that LOCATE
  460.      searches.
  461.  
  462.      LOCATE .                 ... *.* is searched
  463.      LOCATE BACKUP            ... BACKUP.* is searched
  464.      LOCATE BACKUP.           ... BACKUP. is searched
  465.      LOCATE BACKUP*           ... BACKUP*.* is searched
  466.      LOCATE .EXE              ... *.EXE is searched
  467.      LOCATE .E*               ... *.E* is searched
  468.  
  469.      Using the Extended Wildcard Option
  470.      ──────────────────────────────────
  471.      The new extended wildcard option allows  you to search for files where
  472.      a specified text occurs anywhere in the filename or extension.  To use
  473.      this  feature, simply place an asterisk  "*" before the filename.  See
  474.      the following examples:
  475.  
  476.      LOCATE *92               ... "92" occurs anywhere in filename[.ext]
  477.      LOCATE \BACKUP\*DOC      ... "DOC" occurs anywhere in filename[.ext]
  478.      LOCATE C:\*SIGN.DAT      ... "SIGN" occurs in filename (.DAT ignored)
  479.  
  480.      This feature is useful when you know part of the  filename but you are
  481.      not certain  that it  is always  the FIRST  part.   Note  that if  you
  482.      specify an extension when using  the extended wildcard option, it will
  483.      be ignored.
  484.  
  485.  
  486.  
  487.  
  488.  
  489.      ══════════════════════════════════════════════════════════════════════
  490.      LOCATE: version 2.10                                            page 5
  491.  
  492.  
  493.      LOCATE  displays  the  following  status  line  to indicate  that  the
  494.      extended wildcard option is active:
  495.  
  496.      Searching : *< 92 >*     ... displayed on LOCATE *92 (see above)
  497.      Start Path: X:\DIRNAME
  498.  
  499.  
  500.      The LOCATE File Display
  501.      ═══════════════════════
  502.      LOCATE  displays  the  following  information for  each  file  that is
  503.      located: path  specification,  filename, extension,  file  size,  last
  504.      modified date, last  modified time, and  file attributes.  If  you are
  505.      attached to a Novell NetWare server, the file owner name is displayed.
  506.      See the following sample display:
  507.  
  508.      D:\WP51\DOC\          SS_MLOC .RPT    145968 07-30-91  1:25a A--- DRH
  509.      D:\WP51\DOC\          SS_LOGS .MAS       445 01-07-92  9:59a AR-- DRH
  510.      D:\WP51\DOC\          SS_RLLOC.LTR     13060 12-29-91  4:13p A--- DRH
  511.      D:\WP51\DOC\          SS_LICEN.PRO      9998 12-29-91  4:10p A--- DRH
  512.      D:\WP51\DOC\          BACKUPS        < DIR > 12-01-91  1:12p A--- SUP+
  513.      D:\WP51\DOC\          ARCHIVES       < DIR > 12-01-91  1:13p A--- SUP+
  514.  
  515.      The  file  path may  be abbreviated  if  there is  not enough  room to
  516.      display the entire path; for example,  "D:\...\WP51\BACKUPS\HIST\DOCS"
  517.      may be displayed.   To suppress these types of path name abbreviations
  518.      (i.e. to force LOCATE to display the  full path, up to 79 characters),
  519.      use the  /L[ONG] option.   You  may specify  /L on  the command  line;
  520.      however,  you  may  prefer  to  include  this  option  in  the  LOCATE
  521.      environment variable (see "Setting LOCATE Defaults", page 7).
  522.  
  523.      For directory entries  (see /DIR  option), "< DIR  >" is displayed  in
  524.      place  of the size.   LOCATE then displays the  data and time that the
  525.      file (or directory) was last modified (or created).
  526.  
  527.      The attributes are indicated if ON (set), else a hyphen (-) is used to
  528.      indicate  that the  attribute is  OFF (not  set).  The  attributes are
  529.      indicated in the order listed below.   For example, SS_LOGS.MAS in the
  530.      list above has the Archive and ReadOnly attribute ON.
  531.  
  532.           - A = Archive       ... file has been modified since last backup
  533.           - R = ReadOnly      ... cannot write to or delete file
  534.           - S = System        ... for system use (hidden)
  535.           - H = Hidden        ... for system use (hidden)
  536.  
  537.      For Novell NetWare  environments, the file owner will  be displayed to
  538.      the  right of the attributes list.   If the file  owner name is longer
  539.      than three  characters, then  the first three  characters of  the name
  540.      will  be displayed,  followed by a  plus (+)  sign.  For  example, the
  541.      supervisor user would be displayed as "SUP+", as illustrated above.
  542.  
  543.      You may  optionally display  longer owner names  with the  /LN option.
  544.      For detailed information, see "Setting LOCATE Defaults", page 7.
  545.  
  546.  
  547.      ══════════════════════════════════════════════════════════════════════
  548.      LOCATE: version 2.10                                            page 6
  549.  
  550.  
  551.      The following outlines  the meaning for values displayed  in the owner
  552.      position:
  553.  
  554.           - any three characters   ... owner name
  555.           - any three characters+  ... partial owner name
  556.           - ???                    ... error getting owner information
  557.           - ---                    ... no owner (owner deleted)
  558.           - Lcl                    ... local drive, no owner information
  559.  
  560.  
  561.      Interrupting LOCATE
  562.      ═══════════════════
  563.      To interrupt a file scan while in progress, press the ESCAPE  key, the
  564.      Space-Bar, or ENTER.  You will be presented with the following prompt:
  565.  
  566.      PAUSED: <C>ont  <N>ext  Ch<D>ir:X:\XXXXXX\XXXXXX  <A>bort: N
  567.  
  568.      The following keys are available from the pause prompt.  Note that the
  569.      default option (<N>ext) may be selected by simply pressing ENTER.
  570.  
  571.           - C  ... Continuous (continue without subsequent screen pauses)
  572.           - N  ... Next Screen (continue and pause when screen is full)
  573.           - D  ... change to the Directory specified and exit
  574.           - A  ... Abort
  575.  
  576.      To immediately interrupt LOCATE during  a file scan (and abort), press
  577.      Ctrl-C or Ctrl-Break.  You will NOT be presented with an option prompt
  578.      and the  scan will terminate as soon  as possible.  This  is used when
  579.      you want to  abort the scan  immediately.  This  Break option is  also
  580.      useful if you are using  the /TEXT option and you just  reached a 60Mb
  581.      file  that you do  not intend to  search (searching a  file this large
  582.      could  take 20  seconds  to  2 minutes  depending  on your  hardware).
  583.      LOCATE will  not check for  ESCAPE, Space-Bar, or ENTER  while looking
  584.      inside a  file,  but Ctrl-Break  is  checked periodically  during  all
  585.      processes (including the /TEXT search).
  586.  
  587.      Note that you  can use the  /P option  on the command  line or in  the
  588.      LOCATE environment variable to force automatic pauses when the  screen
  589.      is  full.   See  "Miscellaneous  Options",  page  13,  for  additional
  590.      information.
  591.  
  592.  
  593.      Setting LOCATE Defaults
  594.      ═══════════════════════
  595.      You  may customize  the default behavior  of LOCATE  by setting  a DOS
  596.      environment variable  (called  "LOCATE") using  the supported  command
  597.      line options.
  598.  
  599.      To set the environment variable, include the following command in your
  600.      AUTOEXEC.BAT file: "SET  LOCATE=<options...>".  The  following options
  601.      may  be specified  in the  LOCATE environment  variable (order  is not
  602.      important).
  603.  
  604.  
  605.      ══════════════════════════════════════════════════════════════════════
  606.      LOCATE: version 2.10                                            page 7
  607.  
  608.  
  609.      Note that all options are supported from the command line.  The use of
  610.      /M  and  /BIOS  is  generally  restricted  to  the  LOCATE environment
  611.      variable  (to ensure  that the  flags are  set before  LOCATE displays
  612.      anything).
  613.  
  614.           - /LN     ... forces long owner name display (up to 8 characters)
  615.           - /L      ... suppress path abbreviations for long DIR names
  616.           - /S      ... Search current directory and under
  617.           - /P      ... Pause display when screen is full
  618.           - /Q      ... Quiet (no status information is displayed)
  619.           - /M      ... Mono (use to suppress colors)
  620.           - /BIOS   ... force ROM-BIOS calls for video output
  621.           - /DIR    ... include DIRectory entries in the file search
  622.           - /NONET  ... ignore Novell NetWare even if detected
  623.           - /TL###  ... for /TEXT - lines of text to display (0 - 512)
  624.           - /OCCUR  ... for /TEXT - count occurrences (default)
  625.           - /CASE   ... for /TEXT - case sensitive
  626.           - /BF...  ... for /BATCH - batch file name
  627.  
  628.      The options above are described in detail in the sections that follow.
  629.      Note that  all of these options  are supported from the  command line;
  630.      however, the use of /M, /BIOS, /NONET, and /LN is generally restricted
  631.      to the LOCATE environment variable.
  632.  
  633.      The /M option suppresses display  of colors (intensity is still used).
  634.      You should only  use this option if  you use a monochrome  monitor and
  635.      some characters are missing from the LOCATE file display.
  636.  
  637.      The /BIOS option should be used if your video hardware is not 100% IBM
  638.      compatible and/or the display appears erratic, garbled, or slow.  Note
  639.      that display performance  may be  poor when using  this option.   Some
  640.      users with CGA monitors report improved display performance when using
  641.      the /BIOS option in the LOCATE environment variable.
  642.  
  643.      Use /NONET to suppress Novell NetWare support. This option is provided
  644.      for flexibility.   Note that you will not see  the owner name for each
  645.      file and you will  be unable to use the owner functions (/O=, /O NOT=,
  646.      /SET O=) when using the /NONET option.
  647.  
  648.      Use /L (or /LONG) to force LOCATE to display the full  path/ directory
  649.      name  (up to  79  characters).   By  default,  LOCATE will  abbreviate
  650.      directory paths in order  to display all file information on one line.
  651.      If you use this option and a long path entry is found, then the entire
  652.      path  name is diaplayed  on one  line; all  other file  information is
  653.      displayed on the following line in the standard format.
  654.  
  655.      Use /LN (or  /LONGNAMES) to force LOCATE  to display long  owner names
  656.      (up to eight characters).  By  default, LOCATE displays only the first
  657.      three characters of the file owner name (for NetWare files).  This may
  658.      be a problem if  you have two owners named "TonyM"  and "TonyG" (since
  659.      LOCATE would display both as "TON+".   If you use long names,  you may
  660.      want to include the /LN option in the LOCATE environment variable.
  661.  
  662.  
  663.      ══════════════════════════════════════════════════════════════════════
  664.      LOCATE: version 2.10                                            page 8
  665.  
  666.  
  667.      The /TL### option  is used to  specify the default  number of  offset/
  668.      occurrence lines to display when using the /TEXT option (see page 24).
  669.      If you  do not specify a value,  then 10 is the default.   To use this
  670.      option, simply provide the maximum  number after the /TL option, i.e.,
  671.      /TL250 (to increase  the maximum to  250).  You  may enter any  value;
  672.      however, the  approximate maximum  for most environments  is 512.   To
  673.      list no  offset lines by  default, specify /TL0.   Do not use  the '='
  674.      (equals) character in  this option, i.e., /TL=###.   While this format
  675.      is  supported on  the command line,  it is  not allowed in  the LOCATE
  676.      environment variable.
  677.  
  678.      The  /OCCUR option  instructs LOCATE  to count  and display  the total
  679.      number of occurrences when  doing a /TEXT search.  If you  do not want
  680.      to  see the  total number  of text  occurrences, then use  /NOOCCUR to
  681.      suppress this feature.
  682.  
  683.      Use the /CASE option to preform case sensitive searches when using the
  684.      /TEXT option.  To  find text occurrences  without respect to upper  or
  685.      lower case, use the /NOCASE switch.
  686.  
  687.      The /BF... options is used to specify the batch file name for use with
  688.      the /BATCH option.  Use  the format /BF<file name>, i.e., /BFtemp.bat.
  689.      Do not  use the '=' (equals) character  in this option, i.e., /BF=....
  690.      While this format  is supported on the command line, it is not allowed
  691.      in the LOCATE environment variable.
  692.  
  693.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  694.      │   When you use the /TL###, /OCCUR, or /CASE options, LOCATE does  │▄
  695.      │   NOT prompt for the respective information before the search.    │█
  696.      │   To override one of these defaults on the command line, simply   │█
  697.      │   use the converse option (i.e., use /NOCASE to override /CASE).  │█
  698.      └───────────────────────────────────────────────────────────────────┘█
  699.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  700.  
  701.      The following  environment variable value  enables the /S, the  /P and
  702.      the /DIR flags.  In addition,  the /L option forces LOCATE to  display
  703.      full path  (long) names (i.e.  no abbreviations).   Note that  you may
  704.      specify the options in any order.
  705.  
  706.           SET LOCATE=/S/P/DIR/L
  707.  
  708.      The  following environment variable value sets  defaults for the /TEXT
  709.      option (125 offset lines maximum, count occurrences, no case).
  710.  
  711.           SET LOCATE=/TL125 /OCCUR /CASE     ... spaces are optional
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.      ══════════════════════════════════════════════════════════════════════
  722.      LOCATE: version 2.10                                            page 9
  723.  
  724.  
  725.      The  following environment variable establishes defaults for the /TEXT
  726.      option (250 offset lines maximum, count occurrences, no case), and for
  727.      the /BATCH option  (file name is TEMP.BAT).  In addition, all searches
  728.      will   begins  at   the   current   subdirectory   and   include   all
  729.      subdirectories; screen pauses  are enabled; and directory  entries are
  730.      included in all searches.
  731.  
  732.           SET LOCATE=/TL250/OCCUR/NOCASE/BFTEMP.BAT/S/P/DIR
  733.  
  734.      The following commands  may be used to override the  /CASE option (see
  735.      the previous example).
  736.  
  737.           LOCATE FILE.EXT /NOCASE            ... reverses default
  738.           LOCATE FILE.EXT /CASE-             ... you will be prompted
  739.  
  740.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  741.      │   To override any default that has been established in the LOCATE │▄
  742.      │   environment variable, simply supply the option on the command   │█
  743.      │   line followed by a hyphen "-" sign, i.e., "LOCATE . /P-".       │█
  744.      │   To override all defaults, specify "/LOCATE-" or simply "/-".    │█
  745.      │                                                                   │█
  746.      │   If you override /TL###, /OCCUR, or /CASE, or /BF... in this     │█
  747.      │   way, then you will be prompted for the options (just as if no   │█
  748.      │   environment variable default existed).                          │█
  749.      └───────────────────────────────────────────────────────────────────┘█
  750.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.      ══════════════════════════════════════════════════════════════════════
  780.      LOCATE: version 2.10                                           page 10
  781.  
  782.  
  783.                                              Chapter 3: Searching for Files
  784.      ──────────────────────────────────────────────────────────────────────
  785.  
  786.      Controlling the Scope of File Searches
  787.      ══════════════════════════════════════
  788.      By  default, LOCATE  begins  searches  at the  root  directory of  the
  789.      current  drive and  searches all  directories.   All file  entries are
  790.      scanned, while directory entries are  ignored.  To modify this default
  791.      scan scope, you must either:
  792.  
  793.           (1)  Explicitly specify a starting directory as part of the  file
  794.                specification, i.e., "LOCATE ..\D*.BAT", "LOCATE \.COM", or
  795.  
  796.           (2)  Use one of  the command line options that  control the scope
  797.                of the directories that are  scanned.  Each of the following
  798.                options is described below: /C, /S, /DIR, /V=, and /PATH.
  799.  
  800.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  801.      │   The /S and /DIR options may be specified in the LOCATE          │▄
  802.      │   environment variable (to modify the default search scopes).     │█
  803.      │   See "Setting LOCATE Defaults", page 7 for Instructions.         │█
  804.      └───────────────────────────────────────────────────────────────────┘█
  805.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  806.  
  807.      /C Option: Current Directory Only
  808.      ─────────────────────────────────
  809.      The  /C option  forces LOCATE  to  search the  current (or  specified)
  810.      directory ONLY.   This is useful when  using /TEXT, /BATCH, or  any of
  811.      the /SET options.
  812.  
  813.      Examples:
  814.  
  815.      LOCATE .EXE /C           ... searches in current directory only
  816.      LOCATE \BACKUP\.COM /C   ... searches in \BACKUP directory only
  817.  
  818.      /S Option: Current Directory and Under
  819.      ──────────────────────────────────────
  820.      The  /S option  forces LOCATE  to  search the  current (or  specified)
  821.      directory and all directories it contains.  Many users  prefer to make
  822.      the /S option a permanent default.  If you generally search relatively
  823.      small  volumes,  then  searching  from  the root  is  not  a  problem.
  824.      However, if you  are on a network with 500Mb volumes, then you may not
  825.      want every search to start at the root.
  826.  
  827.      Note that if  you specify a  starting path in the  file specification,
  828.      the /S option is implied (see the third example below).
  829.  
  830.      Examples:
  831.  
  832.      LOCATE .EXE /S           ... searches current directory and under
  833.      LOCATE \BACKUP\.COM /S   ... searches in \BACKUP directory and under
  834.      LOCATE \BACKUP\.COM      ... same search (/S assumed)
  835.  
  836.  
  837.      ══════════════════════════════════════════════════════════════════════
  838.      LOCATE: version 2.10                                           page 11
  839.  
  840.  
  841.      /DIR Option: Include Directory Entries
  842.      ──────────────────────────────────────
  843.      The /DIR  option includes directory  entries in the LOCATE  file scan.
  844.      Normally, directory names  are not listed even if they  match the file
  845.      specification.  Many users prefer to make  the /DIR option a permanent
  846.      default.   Note that /SET  operations are not currently  supported for
  847.      directory entries (the /DIR option is ignored on any /SET).
  848.  
  849.      /V= Option: Volume/ Drive List
  850.      ──────────────────────────────
  851.      To force  LOCATE to search  multiple drives for a  file specification,
  852.      use  the   /V=  option.    The  general   format  of  this  option  is
  853.      /V=<drive list...>.  When specifying the  drives to search, colons and
  854.      white space are ignored.   Note that when the /V=  option is supplied,
  855.      the  search always  starts at  the root  directory, even  if you  have
  856.      specified a starting path.
  857.  
  858.      Examples:
  859.  
  860.      LOCATE .COM /V=C: D:     ... searches from the root of C:, then D:
  861.      LOCATE .COM /V=CD        ... same search
  862.      LOCATE \DOS\.COM /V=CD   ... same search (start path is ignored)
  863.  
  864.      Note that invalid  drive specifications are removed from  the /V= list
  865.      before LOCATE begins the scan.  For example, if you include  /V=CDE on
  866.      a system where E: does not exist, it will automatically be removed.
  867.  
  868.      If you  are performing  a network operation  (restricting the  scan by
  869.      file owner  or setting  the file owner),  then all  local drives  will
  870.      automatically be  removed from the search  list.  In  addition, if you
  871.      specify any file owner  option, LOCATE will verify  the owner for  the
  872.      specified path or volume.   For example, assume that drive  G: maps to
  873.      SERVER1/SYS: and drive J: maps to SERVER2/SYS:.   If you specify /V=GJ
  874.      with an  owner option  (/O=, /O !=,  or /SET  O=), then  the specified
  875.      owner must be valid on both SERVER1 and SERVER2.  If the user is valid
  876.      on SERVER1 only, then J: will be automatically removed from the list.
  877.  
  878.      /PATH Option: Search DOS PATH or NetWare Search MAP
  879.      ───────────────────────────────────────────────────────
  880.      To search the DOS  PATH or the NetWare Search MAP  only, use the /PATH
  881.      option.  This is especially helpful when you want to find the location
  882.      of executable programs  (i.e., programs that you run  with .COM, .BAT,
  883.      and  .EXE extensions).    Note that  the /PATH  option  search is  not
  884.      limited  to  executable  files;  you  may  specify  any  valid  search
  885.      specification.    If  you specify  a  path  as  a  part  of  the  file
  886.      specification, it will be ignored.
  887.  
  888.      Examples:
  889.  
  890.      LOCATE ED /PATH          ... searches for ED.* in the PATH only
  891.      LOCATE \DOS\ED           ... same search (path, (\DOS) is ignored)
  892.  
  893.  
  894.  
  895.      ══════════════════════════════════════════════════════════════════════
  896.      LOCATE: version 2.10                                           page 12
  897.  
  898.  
  899.      Note  that LOCATE automatically ignores invalid path specifications in
  900.      /PATH.  This includes  directories that do not exist  and volumes that
  901.      should not be  scanned because of a  specifed owner option.   For more
  902.      information, see the previous section "/V= Option".
  903.  
  904.  
  905.      Miscellaneous Options
  906.      ═════════════════════
  907.      This section provides  descriptions for  several miscellaneous  LOCATE
  908.      command  line options.   Each  of the  following options  is described
  909.      below: /P, /Q, /CD, and /R.
  910.  
  911.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  912.      │   The /P and /Q options may be specified in the LOCATE            │▄
  913.      │   environment variable (to modify the default search scopes).     │█
  914.      │   See "Setting LOCATE Defaults", page 7 for Instructions.         │█
  915.      └───────────────────────────────────────────────────────────────────┘█
  916.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  917.  
  918.      /P Option: Pause Display
  919.      ────────────────────────
  920.      Unless your  search specification  or file  operation involves  a very
  921.      small number  of files,  the LOCATE file  display will  quickly scroll
  922.      away before you can read the information.  To prevent this, use the /P
  923.      option to pause the display when full.
  924.  
  925.      As stated above, you can place this option in the environment variable
  926.      as a  permanent default (and most users do).   When the screen pauses,
  927.      you will be  presented with the following  prompt (just as if  you had
  928.      pressed ESCAPE, Space-Bar, or ENTER during the file scan):
  929.  
  930.      PAUSED: <C>ont  <N>ext  Ch<D>ir:X:\XXXXXX\XXXXXX  <A>bort: N
  931.  
  932.      Please refer to  "Interrupting LOCATE", page 7, for  an explanation of
  933.      options at this prompt.   Note that when you select  the <C>ont option
  934.      (continuous), you essentially turn off the /P option (although you can
  935.      still force a pause by pressing ESCAPE, Space-Bar, or ENTER).
  936.  
  937.      /Q Option: Quiet Display
  938.      ────────────────────────
  939.      The /Q option suppresses the  status line that LOCATE uses  to display
  940.      the current directory and file information.  On some (slower) systems,
  941.      especially if  using the /BIOS option,  you may notice a  slight speed
  942.      improvement when  using this option.   In most cases,  the performance
  943.      difference is not significant.
  944.  
  945.      Note that most users  prefer to see  the status line.   If you  decide
  946.      that  you  can  do  without  it   and  you  want  to  maximize  search
  947.      performance,  then place  the  /Q option  in  your LOCATE  environment
  948.      variable or use this option on the command line.
  949.  
  950.  
  951.  
  952.  
  953.      ══════════════════════════════════════════════════════════════════════
  954.      LOCATE: version 2.10                                           page 13
  955.  
  956.  
  957.      /CD Option: Change Directory
  958.      ────────────────────────────
  959.      The /CD option  allows you to quickly  change to the directory  of the
  960.      first match during a file  search.  This is useful when  you know that
  961.      you want  to jump  to the  directory containing  a file  that you  are
  962.      searching for.  Note that the match may occur on any drive.
  963.  
  964.      You may  change to  the directory  for any  file listed  by LOCATE  by
  965.      pressing  ESCAPE, Space-Bar, or ENTER during the  file scan.  You will
  966.      then be presented  with a menu of  options; select Ch<D>ir to  jump to
  967.      the directory  displayed.  Note  that LOCATE offers the  directory for
  968.      the last file  listed, so if the  file display scrolls by  too quickly
  969.      you may lose your opportunity!  Please refer to "Interrupting LOCATE",
  970.      page 7, for an explanation of options at the pause prompt.
  971.  
  972.      Examples:
  973.  
  974.      LOCATE \PRUNE.EXE /CD    ... change to directory containing PRUNE.EXE
  975.      LOCATE CED.COM /V=CD /CD ... change to drive/ directory for CED.COM
  976.  
  977.      /AUTO Option: Suppress Confirmation Prompts
  978.      ───────────────────────────────────────────
  979.      When using the /SET options (see Chapter  4, page 27), the /DEL option
  980.      (see Chapter 5,  page 32), or the /BATCH, /RUN options (see Chapter 6,
  981.      page 33), LOCATE displays an  initial confirmation prompt.  You should
  982.      read  the confirmation information carefully  since both /SET and /DEL
  983.      are potentially  dangerous commands.   For some applications,  you may
  984.      wish to suppress the confirmation prompt (when using LOCATE from batch
  985.      files, for example).
  986.  
  987.      To  disable  the confirmations  with  /SET,  /DEL, /BATCH,  and  /RUN,
  988.      specify the /AUTO option  on the command line.  This  forces LOCATE to
  989.      complete all requested /SET's or /DELetions WITHOUT confirmation.
  990.  
  991.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  992.      │   Please use the /AUTO option with caution.  LOCATE will begin    │▄
  993.      │   /SET's or /DELetions immediately and without any confirmation!  │█
  994.      │   You should be certain that the file specification and scope     │█
  995.      │   options are appropriate for the specified operation.            │█
  996.      └───────────────────────────────────────────────────────────────────┘█
  997.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  998.  
  999.      /### Option: Maximum Files to List or /SET
  1000.      ──────────────────────────────────────────
  1001.      You may specify  the maximum number of file entries to list and/or set
  1002.      by using the /### option, where '###'  is any numeric value from 1  to
  1003.      just over 2 billion (2,147,483,647 to be exact).
  1004.  
  1005.      You may want to use this option to list only the first 25 matches  for
  1006.      a search specifications, for example.  This option is also useful when
  1007.      performing /SET operations (especially from batch files); for example,
  1008.      you may wish to /SET a property for a single file only.
  1009.  
  1010.  
  1011.      ══════════════════════════════════════════════════════════════════════
  1012.      LOCATE: version 2.10                                           page 14
  1013.  
  1014.  
  1015.      When  entering the  maximum files  limit,  you may  insert commas  for
  1016.      readability if you like (although  values this large are not generally
  1017.      useful).
  1018.  
  1019.      The  following  command limits  the files  listed to  25 for  a simple
  1020.      search specification:
  1021.  
  1022.      LOCATE .C /C /25
  1023.  
  1024.      The following  command  illustrates a  /SET operation  where only  the
  1025.      first file  found  in the  current directory  is adjusted.   The  /SET
  1026.      options are described in Chapter 4 (see page 27).
  1027.  
  1028.      LOCATE MSDRV.EXE /C /1 /SETA=R
  1029.  
  1030.      /R Option: Registration Information
  1031.      ───────────────────────────────────
  1032.      The /R option displays a  quick summary of the registration procedures
  1033.      for LOCATE.   See  Appendix A,  page 49,  in this  guide for  detailed
  1034.      registration information and instructions.
  1035.  
  1036.  
  1037.      Advanced Search Options
  1038.      ═══════════════════════
  1039.      LOCATE supports  many advanced  file search  and manipulation  options
  1040.      that  allow you  to search  for file  based on  flexible and  powerful
  1041.      parameters.  For  example, you could LOCATE  all files that have  been
  1042.      modified  in the past  2 days that  are larger than  100,000 bytes and
  1043.      that  are  owned (under  NetWare) by  any  user other  than DRH.   The
  1044.      following command would accomplish this:
  1045.  
  1046.      LOCATE . /AGE=2 /S=100,000- /O NOT=DRH  ... spaces are for readability
  1047.  
  1048.      The following options are described  in this section: /S=, /D=, /AGE=,
  1049.      /T=, /A=, /O=, /O NOT=, and /TEXT.
  1050.  
  1051.      /S= Option: File Size Limit
  1052.      ───────────────────────────
  1053.      It is  often convenient  to find  files that  fall within  a range  of
  1054.      sizes.   LOCATE allows  you to search  for files  that are  a specific
  1055.      size, or within a specified size range.  For example, you  may wish to
  1056.      find all files that are larger than 250,000 bytes.
  1057.  
  1058.      You can use this option  to easily locate those pesky zero-byte  files
  1059.      that are often left behind by application programs.  In  addition, you
  1060.      may want  to  periodically  list all  files  that are  larger  than  a
  1061.      specified size; this is a great way to free up disk space quickly (get
  1062.      rid of the largest files first).
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.      ══════════════════════════════════════════════════════════════════════
  1070.      LOCATE: version 2.10                                           page 15
  1071.  
  1072.  
  1073.      The general form of this  option is /S=[minimum size]-[maximum size].
  1074.      You may insert white space for readability  if you like.  In addition,
  1075.      you may  optionally use commas  within the size specifications.   When
  1076.      entering a  size range,  you may use  any non-space  character (except
  1077.      slash "/") to  delimit the size  arguments (note  that the hyphen  "-"
  1078.      character is recommended).
  1079.  
  1080.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1081.      │   When using any of the LOCATE range options (for size, date,     │▄
  1082.      │   or time), note that the respective limits are always INCLUSIVE. │█
  1083.      │   For example, the option /S=100-1,000 includes 100 and 1,000.    │█
  1084.      └───────────────────────────────────────────────────────────────────┘█
  1085.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1086.  
  1087.      The following command searches for  all *.H files under F:\SOURCE that
  1088.      are EXACTLY 1,000 bytes (not a very useful search).
  1089.  
  1090.      LOCATE F:\SOURCE\*.H /S=1,000      ... commas are optional
  1091.  
  1092.      The next command  finds all  files on  drives C: through  H: that  are
  1093.      exactly 0 bytes.  Note that  the /DEL option (described in Chapter  5,
  1094.      page 32) could be used here to erase these files.
  1095.  
  1096.      LOCATE . /V=CDEFGH /S=0
  1097.  
  1098.      The following  command searches for  all *.DAT files that  are between
  1099.      1,000 bytes and  5,000 bytes (inclusive).   Note that the white  space
  1100.      here is for readability only.
  1101.  
  1102.      LOCATE *.DAT /S=1,000 - 5,000
  1103.  
  1104.      The following command  searches for all *.LTR files that  are at least
  1105.      250,000 bytes.  Note that this is identical to the range syntax above,
  1106.      except that the second size is omitted.
  1107.  
  1108.      LOCATE .LTR /S=250,000-
  1109.  
  1110.      The  following command  searches for all  *.PRG files  under E:\SYSTEM
  1111.      that  are 1,500  bytes or less  (0 to  1,500, inclusive).   Again, the
  1112.      optional space is for readability.
  1113.  
  1114.      LOCATE E:\SYSTEM\.PRG /S= -1,500
  1115.  
  1116.      /D= Option: Last Modify Date
  1117.      ────────────────────────────
  1118.      For every file and  directory, DOS maintains a last  modified date and
  1119.      time.   When you  create or  modify a  file,  this date  and time  are
  1120.      automatically  updated.    Using LOCATE,  you  can  easily  find files
  1121.      created or updated within a specified date range or within a specified
  1122.      period of time.  Chapter 4 describes procedures for  changing the date
  1123.      and/or time using LOCATE's powerful /SET options (see page 28).
  1124.  
  1125.  
  1126.  
  1127.      ══════════════════════════════════════════════════════════════════════
  1128.      LOCATE: version 2.10                                           page 16
  1129.  
  1130.  
  1131.      You  can use this  option to list  all files created  or last modified
  1132.      today or in the past week, etc.  For example, you may  want to see all
  1133.      files changed by  an application program.  This is also useful to list
  1134.      files that have  been modified by an  installation program (especially
  1135.      useful for Windows applications!).
  1136.  
  1137.      The general  form of this option is /D=[start  date]-[end date].   You
  1138.      may insert white space for readability if  you like.  In addition, you
  1139.      may  optionally  enter the  century  year  (19xx  is assumed).    When
  1140.      entering a  date range,  you may use  any non-space  character (except
  1141.      slash  "/") to delimit  the date arguments  (note that  the hyphen "-"
  1142.      character is recommended).
  1143.  
  1144.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1145.      │   Use the special keyword "TODAY" to denote the current date.     │▄
  1146.      │   For example, /D=TODAY may be used to find files created or      │█
  1147.      │   modified today (this is equivalent to /AGE=0).  If you are      │█
  1148.      │   running LOCATE in a Novell NetWare environment, use the keyword │█
  1149.      │   "DATE CREATED" to denote the date the file was created/ copied. │█
  1150.      └───────────────────────────────────────────────────────────────────┘█
  1151.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1152.  
  1153.      The following command searches for  all *.H files under F:\SOURCE that
  1154.      are were created or modified on 4-1-1993.
  1155.  
  1156.      LOCATE F:\SOURCE\*.H /D=4-1-93     ... same as /D=04-01-1993
  1157.  
  1158.      The  next command finds  all files on  drives C: through  H: that were
  1159.      created or modified on the current date (today).
  1160.  
  1161.      LOCATE . /V=CDEFGH /D=TODAY        ... same as /AGE=0
  1162.  
  1163.      The following command  searches for all *.DAT files  that were created
  1164.      or modified between the dates of 4-1-93 and 4-15-93 (inclusive).  Note
  1165.      that the white space here is for readability only.
  1166.  
  1167.      LOCATE *.DAT /D=4-1-93 - 4-15-93
  1168.  
  1169.      The following command  searches for all *.LTR files  that were created
  1170.      or modified on  or after 4-1-93.   Note that this is  identical to the
  1171.      range syntax above, except that the second date is omitted.
  1172.  
  1173.      LOCATE .LTR /S=4-1-93 -
  1174.  
  1175.      This command lists  all *.PRG files under E:\SYSTEM  that were created
  1176.      or last modified  on or before 4-15-93.   Again, the white  space here
  1177.      (after the '=' character) is optional.
  1178.  
  1179.      LOCATE E:\SYSTEM\.PRG /D= -4-15-93
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.      ══════════════════════════════════════════════════════════════════════
  1186.      LOCATE: version 2.10                                           page 17
  1187.  
  1188.  
  1189.      /D NOT= Option: Last Modify Date
  1190.      ────────────────────────────────
  1191.      The /D NOT= option is an extension of the /D= date filter option.  Use
  1192.      this option  to include  files created  or last  modified on  any date
  1193.      other than the specified value.  See the previous section for detailed
  1194.      information on using the /D= options.
  1195.  
  1196.      The following  command finds  all *.C files  in the  current directory
  1197.      that were not created or modified on 12-31-1993.
  1198.  
  1199.      LOCATE .C /C /D NOT= 12-31-93      ... white space is optional
  1200.  
  1201.      The following command searches for  all *.H files under F:\SOURCE that
  1202.      are were created or  modified before the current date.   Note that the
  1203.      modification/creation  date cannot be after the  current date, so this
  1204.      exclusion yields the desired result.
  1205.  
  1206.      LOCATE F:\SOURCE\*.H /D NOT=TODAY
  1207.  
  1208.      The next command  finds all files  on drives F:  through H: that  have
  1209.      been modified  since the date the  file was created or  copied (Novell
  1210.      NetWare  required).  Note  that the  modification date  must be  on or
  1211.      after the Novell creation date.
  1212.  
  1213.      LOCATE . /V=FGH /D NOT=DATE CREATED
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.      ══════════════════════════════════════════════════════════════════════
  1244.      LOCATE: version 2.10                                           page 18
  1245.  
  1246.  
  1247.      /AGE= Option: Last Modify Date
  1248.      ──────────────────────────────
  1249.      The /AGE=  option is  an extension  of the  /D=  option (see  previous
  1250.      section).  This option allows you to search for files created  or last
  1251.      modified within a specified number of days.  For example, you may wish
  1252.      to find files modified within the past five days.
  1253.  
  1254.      When using the /AGE= option, you must  specify the number of days; the
  1255.      valid range is from 0 (today) to 365 (1 year ago).  The general format
  1256.      of  this option is  /AGE=<number of days>.   Note that  if you specify
  1257.      /AGE=0, then all files created or modified on the current date will be
  1258.      listed (this is equivalent to specifying /D=TODAY).
  1259.  
  1260.      The following command searches for  all *.H files under F:\SOURCE that
  1261.      were created or modified on the current day (today).
  1262.  
  1263.      LOCATE F:\SOURCE\*.H /AGE=0        ... same as /D=TODAY
  1264.  
  1265.      The  next command finds  all files on  drives C: through  H: that were
  1266.      created or modified within the past three days.
  1267.  
  1268.      LOCATE . /V=CDEFGH /AGE=3          ... today and three days prior
  1269.  
  1270.      The following command  searches for all *.DAT files  that were created
  1271.      or modified within the past two months.
  1272.  
  1273.      LOCATE *.DAT /AGE=60
  1274.  
  1275.      /T= Option: Last Modify Time
  1276.      ────────────────────────────
  1277.      For  every file and directory, DOS maintains  a last modified date and
  1278.      time.   When  you create  or modify  a file,  this date  and  time are
  1279.      automatically updated.    Using  LOCATE,  you can  easily  find  files
  1280.      created or updated within a specified date range or within a specified
  1281.      period  of time.  Chapter 4 describes procedures for changing the date
  1282.      and/or time using LOCATE's powerful /SET options (see page 29).
  1283.  
  1284.      You can use this option to list all files  created or last modified at
  1285.      a specified time or within a  specified time range.  For example,  you
  1286.      may want to see all files modified in the past hour.
  1287.  
  1288.      The general form of  this option is /T=[start hh:mm]-[end hh:mm].  You
  1289.      may insert white space for readability if you like.  You  should enter
  1290.      the time in 24 hour format; 0:00 is midnight, 12:00 is noon, and 23:59
  1291.      is  11:59pm.    You should  NOT  enter  a value  for  seconds  (:00 is
  1292.      assumed).   When entering  a time  range,  you may  use any  non-space
  1293.      character (except slash "/") to  delimit the time arguments (note that
  1294.      the hyphen "-" character is recommended).
  1295.  
  1296.  
  1297.  
  1298.  
  1299.  
  1300.  
  1301.      ══════════════════════════════════════════════════════════════════════
  1302.      LOCATE: version 2.10                                           page 19
  1303.  
  1304.  
  1305.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1306.      │   Use the special keyword "NOW" to denote the current time.       │▄
  1307.      │   For example, /T=NOW may be used to find files created or        │█
  1308.      │   modified at the current time.  If you are running LOCATE in     │█
  1309.      │   a Novell NetWare environment, use the special keyword           │█
  1310.      │   "TIME CREATED" to denote the time the file was created/ copied. │█
  1311.      └───────────────────────────────────────────────────────────────────┘█
  1312.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1313.  
  1314.      The following command searches for  all *.H files under F:\SOURCE that
  1315.      were created or modified  at 5:00am (on any date).  This may be useful
  1316.      for  applications that  use the  time stamp  to indicate  the software
  1317.      version (note that LOCATE.EXE should be time stamped with the version;
  1318.      for example, version 2.11 should be stamped 2:11am.
  1319.  
  1320.      LOCATE F:\SOURCE\*.H /T=5:00
  1321.  
  1322.      The following command  searches for all *.DAT files  that were created
  1323.      or modified  between the times of 1:00am and 5:00am (inclusive).  Note
  1324.      that the white space here is for readability only.
  1325.  
  1326.      LOCATE *.DAT /T=1:00 - 5:00
  1327.  
  1328.      The following command  searches for all *.LTR files  that were created
  1329.      or modified at or after  2:30pm.  Note that  this is identical to  the
  1330.      range syntax above, except that the second time is omitted.
  1331.  
  1332.      LOCATE .LTR /T=14:30 -
  1333.  
  1334.      The  following command  searches for  all *.PRG files  under E:\SYSTEM
  1335.      that were created  or last modified at  or before 6:00pm.   Again, the
  1336.      optional space is for readability.
  1337.  
  1338.      LOCATE E:\SYSTEM\.PRG /T= -18:00
  1339.  
  1340.      /T NOT= Option: Last Modify Time
  1341.      ────────────────────────────────
  1342.      The /T NOT= option is an extension of the /T= time filter option.  Use
  1343.      this option  to include files  created or  last modified  at any  time
  1344.      other than the specified value.  See the previous section for detailed
  1345.      information on using the /T= options.
  1346.  
  1347.      The following  command finds  all *.C files  in the  current directory
  1348.      that were not created or modified at 9:30am.
  1349.  
  1350.      LOCATE .C /C /T NOT= 9:30          ... white space is optional
  1351.  
  1352.  
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358.  
  1359.      ══════════════════════════════════════════════════════════════════════
  1360.      LOCATE: version 2.10                                           page 20
  1361.  
  1362.  
  1363.      /A= Option: File Attributes
  1364.      ───────────────────────────
  1365.      For every  file, DOS  maintains an attribute  byte that  contains four
  1366.      flags (or  bits) as described in this section  (other bits in the file
  1367.      attribute byte are  used by DOS to indicate a volume  label entry or a
  1368.      directory entry).   For detailed  information on DOS  file attributes,
  1369.      please consult your  DOS documentation.  A brief  description of these
  1370.      attributes is provided.
  1371.  
  1372.      Archive   This flag  is used by  Backup, XCopy, and other  programs to
  1373.                determine  which files  have been  modified  since the  last
  1374.                backup.  If  the file has  been modified, then this  flag is
  1375.                set (or ON).
  1376.  
  1377.      ReadOnly  This flag prevents a file from being changed or deleted.
  1378.  
  1379.      Hidden    This flag  prevents  the  file from  being  displayed  in  a
  1380.                directory listing.  Note that you can still use the file (if
  1381.                you know the filename).
  1382.  
  1383.      System    This  flag designates  the file  as a  system file.   System
  1384.                files are hidden from display  in a directory listing.  This
  1385.                flag is generally reserved for use by DOS.  MS-DOS  sets the
  1386.                System bit/flag ON for MSDOS.SYS and IO.SYS.
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.      ══════════════════════════════════════════════════════════════════════
  1418.      LOCATE: version 2.10                                           page 21
  1419.  
  1420.  
  1421.      LOCATE allows you to search for files that match specified attributes.
  1422.      For example, you  may wish to find  all hidden and/or system  files on
  1423.      your disk (especially helpful after installing new software).  You may
  1424.      wish to see all files that have been changed (i.e., the Archive bit is
  1425.      set ON).
  1426.  
  1427.      Chapter  4 describes  procedures  for  changing  the  file  attributes
  1428.      (setting  individual flags  ON or  OFF) using  LOCATE's  powerful /SET
  1429.      options (see page 29).  You can use this feature to protect files (set
  1430.      ReadOnly  ON) or  to  hide  files from  prying  eyes  (set the  Hidden
  1431.      attribute ON).
  1432.  
  1433.      The general form of the Attribute option is /A=<attributes>.  List the
  1434.      attributes by  first letter only,  i.e., A, R, S,  and/or H.   As with
  1435.      other  options, white  space and  extra  characters are  ignored.   In
  1436.      addition, the order of attributes in the list is not important.
  1437.  
  1438.      The following command  will search for all files  on drives C: through
  1439.      H: that have been modified (Archive bit set ON) since the last backup.
  1440.  
  1441.      LOCATE . /V=CDEFGH /A=A
  1442.  
  1443.      If you include more  that one attribute flag in the  list, then LOCATE
  1444.      will display matching files where  ANY ONE of the specified attributes
  1445.      is  set ON.   For example, the  following command will  search for all
  1446.      *.EXE files that have the Hidden or System attribute, or both.
  1447.  
  1448.      LOCATE *.EXE /A=HS
  1449.  
  1450.      Use  the following  command to  find  all the  Hidden, System,  and/or
  1451.      ReadOnly  files  and directories  on  your  system (assume  drives  C:
  1452.      through H:).   Note that  the /DIR option includes  directory entries;
  1453.      the /P option ensures pauses when the screen is full.
  1454.  
  1455.      LOCATE . /V=CDEFGH /A=HSR /DIR /P  ... spaces for readability
  1456.  
  1457.      /O= Option: File Owner
  1458.      ──────────────────────
  1459.      If you  are running LOCATE  in a Novell NetWare  environment, then you
  1460.      may search  for files  by owner  name.   This is  a great  feature for
  1461.      network  administrators  that need  to  quickly see  files  created or
  1462.      modified  by a  specified user  (or by  all users  EXCEPT  a specified
  1463.      user).
  1464.  
  1465.      Chapter 4  describes procedures  for changing  the NetWare  file owner
  1466.      using  LOCATE's  powerful  /SET  options  (see  page   31).    Network
  1467.      administrators can  use this feature  to assign ownership of  files to
  1468.      any valid user.  Note that  NetWare requires minimum access rights for
  1469.      many of the operations performed by LOCATE.   Please refer to "Network
  1470.      Access  Requirements", page 37,  for detailed rights  requirements for
  1471.      your version of NetWare.
  1472.  
  1473.  
  1474.  
  1475.      ══════════════════════════════════════════════════════════════════════
  1476.      LOCATE: version 2.10                                           page 22
  1477.  
  1478.  
  1479.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1480.      │   When using the /O owner option, files on LOCAL drives will be   │▄
  1481.      │   ignored, even if they match the search specification.  NetWare  │█
  1482.      │   does not maintain owner information for files on LOCAL drives.  │█
  1483.      │                                                                   │█
  1484.      │   In addition, LOCATE automatically removes paths or volumes from │█
  1485.      │   /PATH and /V= when the path is not valid for a specified file   │█
  1486.      │   owner.  See "/PATH" and "/V=" sections in this chapter for      │█
  1487.      │   detailed information.                                           │█
  1488.      └───────────────────────────────────────────────────────────────────┘█
  1489.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1490.  
  1491.      The general form of the owner option is /O=<user name>.  If you supply
  1492.      a user name that is not valid  for the search specification (i.e., for
  1493.      the volume(s)  being searched), then  you will  receive an error.   As
  1494.      with other options, white space and extra  characters are ignored.  In
  1495.      addition, case  is not important  (enter the owner  in upper  or lower
  1496.      case; LOCATE will convert to uppercase automatically).
  1497.  
  1498.      The following command searches for  all *.H files under F:\SOURCE that
  1499.      are owned by user "DRH".
  1500.  
  1501.      LOCATE F:\SOURCE\*.H /O=DRH
  1502.  
  1503.      The next  command finds  all files on  drives C:  through H:  that are
  1504.      owned by user "JDOE".
  1505.  
  1506.      LOCATE . /V=CDEFGH /O=JDOE    ... local drives will be ignored
  1507.  
  1508.      The following command searches for all *.DAT files on drives I: and J:
  1509.      that are owned by  user "SUSANJ".   Note that drive I:  or J: must  be
  1510.      mapped to a server where "SUSANJ" is a valid user.
  1511.  
  1512.      LOCATE *.DAT /V=IJ /O=SUSANJ
  1513.  
  1514.      The following command  searches for all *.LTR files  under the current
  1515.      directory that are owned by the SUPERVISOR.
  1516.  
  1517.      LOCATE .LTR /S /O=SUPERVISOR
  1518.  
  1519.      The following  command finds all files on the current volume that have
  1520.      NO  owner (this  happens when  the  existing owner  bindery object  is
  1521.      deleted).
  1522.  
  1523.      LOCATE \. /O=                 ... just leave the owner name blank
  1524.  
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532.  
  1533.      ══════════════════════════════════════════════════════════════════════
  1534.      LOCATE: version 2.10                                           page 23
  1535.  
  1536.  
  1537.      /O NOT= Option: NOT File Owner
  1538.      ──────────────────────────────
  1539.      The /O  EXCLUDE option (/O  NOT=) is an  extension of the  /O= option;
  1540.      please see the  previous section for more information on  the usage of
  1541.      the owner option in Novell NetWare environments.
  1542.  
  1543.      The use of the /O EXCLUDE option is identical to the /O= option.   The
  1544.      general form of this command  is /O NOT=<user name>; the  space before
  1545.      "NOT"  is for readability only.  You  may alternatively use the syntax
  1546.      /O !=<user name>.
  1547.  
  1548.      Note that  when using  the /O  NOT= option,  you may  leave the  owner
  1549.      specification blank to see  files owned by any user  (see last example
  1550.      in previous section).  This simply excludes files without owners.
  1551.  
  1552.      The following command searches for  all *.H files under F:\SOURCE that
  1553.      are owned by all users EXCEPT user "DRH".
  1554.  
  1555.      LOCATE F:\SOURCE\*.H /O NOT= DRH   ... same as /O!=DRH or /O != DRH
  1556.  
  1557.      The  next command  finds all files  on drives  C: through H:  that are
  1558.      owned by all users EXCEPT user "JDOE".
  1559.  
  1560.      LOCATE . /V=CDEFGH /O NOT= JDOE    ... local drives will be ignored
  1561.  
  1562.      /TEXT Option: File Contents
  1563.      ───────────────────────────
  1564.      In many cases, if you are searching for lost information or files, you
  1565.      may know the  "contents" of the files, even though you do not know how
  1566.      the files are named.  For example, if someone on the network completed
  1567.      a proposal a  year ago and no one knows where  the document is stored,
  1568.      then you can use LOCATE to list all files containing some text that is
  1569.      unique to  the  lost  document.    Also, this  is  a  great  tool  for
  1570.      programmers.  You can use LOCATE to list all occurrences of a specific
  1571.      function  call or  to list  all programs where  a specified  header is
  1572.      used, etc.
  1573.  
  1574.      Note that  you may  specify options  (on the  command line  or in  the
  1575.      LOCATE  environment variable) that  establish defaults for  most /TEXT
  1576.      parameters.  Refer to "Setting LOCATE Defaults" on page 7 for detailed
  1577.      information and instructions.   In addition, you may  specify the text
  1578.      to  search for by using the  following format: /TEXT="search text...".
  1579.      This allows you to specify all /TEXT options without prompts.
  1580.  
  1581.      The following  /TEXT option prompts  are provided unless  specified in
  1582.      the LOCATE  environment variable or  on the command  line.  Note  that
  1583.      many  options offer  a default  response  (press ENTER  to accept  the
  1584.      default where available).
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.      ══════════════════════════════════════════════════════════════════════
  1592.      LOCATE: version 2.10                                           page 24
  1593.  
  1594.  
  1595.      Search For                    This  is the target search text.  Unless
  1596.                                    you  intend  to  do   a  case  sensitive
  1597.                                    search, you  can enter  the text in  any
  1598.                                    case    (upper   or    lower).       Use
  1599.                                    /TEXT="search  text..."  on  the command
  1600.                                    line if desired.
  1601.  
  1602.      List Number of Occurrences    Select <Y>es  to have  LOCATE count  the
  1603.                                    total number of text occurrences in each
  1604.                                    file where a match is found.  Use /OCCUR
  1605.                                    or  /NOOCCUR on the  command line  or in
  1606.                                    the LOCATE environment variable.
  1607.  
  1608.      List Offsets/ Contents        Select <Y>es to have  LOCATE display the
  1609.                                    text surrounding each match (by default,
  1610.                                    up to 10 occurrences will be displayed).
  1611.                                    Use /TL### on the command line or in the
  1612.                                    LOCATE   environment   variable.     For
  1613.                                    example,  /TL100  instructs   LOCATE  to
  1614.                                    display the first 100 matches.  Use /TL0
  1615.                                    (or /TL=0) to suppress these listings.
  1616.  
  1617.      Ignore Case                   Select  <Y>es  to  find  both upper  and
  1618.                                    lower  occurrences of  the search  text.
  1619.                                    Use /CASE or /NOCASE on the command line
  1620.                                    or in the LOCATE environment variable.
  1621.  
  1622.      The following is a sample of the LOCATE output when offsets and number
  1623.      of occurrences are being  displayed.  Note  that the display has  been
  1624.      distorted somewhat in order to fit on the page.
  1625.  
  1626.      Searching for   : "hutchins" (any case)
  1627.      List occurrences: ON
  1628.      List offsets    : ON (10 lines max)
  1629.  
  1630.      F:\WP51\DOC\               SS_RMLOC.13       6592 10-03-92  3:21p ----
  1631.        Offset = 791      [ Ray Hutchins, System Solutions Company         ]
  1632.        Offset = 6345     [o "DRHutchins" on·America-Online.·T····X·····X  ]
  1633.        Offset = 6414     [ Ray Hutchins·T$4············System Solutions   ]
  1634.        Total Occurrences: 3
  1635.      F:\WP51\DOC\               SS_MLOC .13      94358 10-02-92  5:11p ----
  1636.        Offset = 83318    [···DRHutchins···.·T$D·D········4·4····You are   ]
  1637.        Total Occurrences: 1
  1638.      F:\WP51\DOC\               SS_MLOC .200     94358 10-02-92  5:11p ----
  1639.        Offset = 83318    [···DRHutchins···.·T$!·D····121xxdd ···You are   ]
  1640.        Offset = 93318    [nald Hutchins···.·,,D·D········4·4····Ysd dddd  ]
  1641.        Total Occurrences: 2
  1642.  
  1643.      LOCATE: 3 Files  Occupying 195308 Bytes (<1 MBytes)
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.      ══════════════════════════════════════════════════════════════════════
  1650.      LOCATE: version 2.10                                           page 25
  1651.  
  1652.  
  1653.      Note that  LOCATE displays  control characters  and all  non-printable
  1654.      values as  a single  dot  "·".   Also note  that color  is used  (when
  1655.      available)  to highlight  the  search string  in  the displayed  text.
  1656.      LOCATE always displays  five bytes before the search  string, and then
  1657.      the search string and subsequent text (up to 55 characters maximum).
  1658.  
  1659.      Use the following command to specify all search options on the command
  1660.      line.   This  search finds  all files  containing  "System Solutions".
  1661.      Exact case is  matched and total occurrences are displayed.  Up to 250
  1662.      lines of offset information will be displayed for each file.
  1663.  
  1664.      LOCATE *.* /TEXT="System Solutions" /CASE /OCCUR /TL=250
  1665.  
  1666.      Note that the '"' (double  quote) marks are required (unless searching
  1667.      for a  single token (character  or word)  with no leading  or trailing
  1668.      spaces).  To embed the '"' character in the search string, precede the
  1669.      character   with  '\'  (backslash).     For  example,  to  search  for
  1670.      "string" with quote", specify  /TEXT="string\" with quote".   If using
  1671.      the prompted method, then the  '\' character is NOT required  (it will
  1672.      be interpreted literally if provided).
  1673.  
  1674.      Most users  will establish defaults  for /[no]CASE and  /[no]OCCUR and
  1675.      /TL### in  the LOCATE environment  variable.  In addition,  most users
  1676.      will simply use /TEXT and enter the search string at the prompt.  When
  1677.      specifying the /TL###  option on the command  line, you may  enter the
  1678.      '=' (equals)  character (as  shown above)  if desired,  but it  is not
  1679.      required.  Note  that you must not  use the '=' (equals)  character in
  1680.      the LOCATE  environment  variable.   Please refer  to "Setting  LOCATE
  1681.      Defaults" on page 7 for detailed information and instructions.
  1682.  
  1683.      To override an environment variable  default for the /TEXT option, you
  1684.      may simply enter the desired option on the command line.  For example,
  1685.      if /NOCASE  is the default,  then use /CASE  to override it.   You may
  1686.      optionally disable the  default by following  it with a hyphen  on the
  1687.      command line.  For  example, /CASE- disables the /CASE  default.  When
  1688.      you disable a default, LOCATE prompts you for the required options.
  1689.  
  1690.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1691.      │   For many /TEXT searches, you may want to quickly determine if   │▄
  1692.      │   files contain some text without seeing the offset lines or the  │█
  1693.      │   total number of occurrences.                                    │█
  1694.      │                                                                   │█
  1695.      │   For the fastest searches, do not have LOCATE count all /TEXT    │█
  1696.      │   occurrences (use /NOOCCUR).  In addition, use /TL=0 to suppress │█
  1697.      │   offset displays.  The /[no]CASE option does not affect speed.   │█
  1698.      └───────────────────────────────────────────────────────────────────┘█
  1699.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.      ══════════════════════════════════════════════════════════════════════
  1708.      LOCATE: version 2.10                                           page 26
  1709.  
  1710.  
  1711.                                               Chapter 4: Using /SET Options
  1712.      ──────────────────────────────────────────────────────────────────────
  1713.  
  1714.      Overview of /SET Options
  1715.      ════════════════════════
  1716.      The /SET options allow you to  set/ change the last modify date,  last
  1717.      modify time,  the file  attributes, and the  file owner  (under Novell
  1718.      NetWare) for  files that  match a LOCATE  search specification.   When
  1719.      combined  with  LOCATE's  powerful search  filters,  the  /SET options
  1720.      provide a very flexible and easy method of maintaining files.
  1721.  
  1722.      Note that  the attribute byte  (archive bit/flag) is NOT  changed when
  1723.      you use the /SET options to modify any of the file  properties (unless
  1724.      you change it explicitly with /SETA=, of course).
  1725.  
  1726.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1727.      │   The /SET options do NOT allow you to change file properties     │▄
  1728.      │   for directory entries.  Note that if you use the /DIR option    │█
  1729.      │   when performing a /SET, the /DIR option is ignored.             │█
  1730.      └───────────────────────────────────────────────────────────────────┘█
  1731.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1732.  
  1733.      When you use the /SET option(s), LOCATE  will display a summary of the
  1734.      requested operations  and prompt  for confirmation  before the  search
  1735.      begins.   To suppress the  initial confirmation prompt, use  the /AUTO
  1736.      option (see page 14). The following prompt will be presented following
  1737.      the summary:
  1738.  
  1739.      SET options for <spec> under Start Path: <Y>es  Yes w/<C>onf  <A>bort:
  1740.  
  1741.      At the  confirmation prompt, select  <Y>es to confirm  requested SET's
  1742.      for  all files  in  <spec> under  the start  path  displayed.   Select
  1743.      <A>bort to cancel  all SET's and abort.  When you select the <C>onfirm
  1744.      option, LOCATE  will prompt you for confirmation  on each SET for each
  1745.      file.  The  following sample prompt confirms setting  Attributes ON as
  1746.      requested for ACCT.DAT.
  1747.  
  1748.      SET ATTR+ for File [F:\DATA\ACCT.DAT]: <Y>es <N>o <S>et All <A>bort:
  1749.  
  1750.      Note that the  prompt "SET ATTR+" indicates that  attributes are being
  1751.      turned ON  (or set), while  "SET ATTR-" indicates that  attributes are
  1752.      being turned OFF.   Other prompts are obvious ("SET DATE", "SET TIME",
  1753.      and "SET OWNER").
  1754.  
  1755.      At  this confirmation  prompt, select  <Y>es to  confirm the  property
  1756.      change for the file listed.  Select <N>o to skip the displayed SET (in
  1757.      the  previous example,  ATTR+) for  the  file.   Select  <S>et All  to
  1758.      confirm the  displayed SET for  the current and ALL  subsequent files.
  1759.      Select <A>bort to cancel all subsequent SET's and stop the search.
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.      ══════════════════════════════════════════════════════════════════════
  1766.      LOCATE: version 2.10                                           page 27
  1767.  
  1768.  
  1769.      Note that the <S>et All option applies ONLY to the displayed SET.  For
  1770.      example,  if setting  date AND  time in a  single operation,  then you
  1771.      could  select to  <S>et  All  dates (when  prompted  for SET  DATE...)
  1772.      without  affecting  the  confirmation  prompts  for  the  time  (i.e.,
  1773.      SET TIME...).
  1774.  
  1775.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1776.      │   When using /SET options, LOCATE only changes file properties    │▄
  1777.      │   when the current value does not match the requested value       │█
  1778.      │   (for example, no time is wasted setting the owner to JDOE if    │█
  1779.      │   the owner is already JDOE).  When using the <C>onfirm option,   │█
  1780.      │   some files may be listed without the requested confirmation.    │█
  1781.      │   Note that LOCATE has not changed the file(s) without your       │█
  1782.      │   permission -- file properties already matched your SET request. │█
  1783.      └───────────────────────────────────────────────────────────────────┘█
  1784.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1785.  
  1786.      /SETD= Option: Set File Date
  1787.      ────────────────────────────
  1788.      For  every file and directory, DOS maintains  a last modified date and
  1789.      time.   When you  create or  modify a  file,  this date  and time  are
  1790.      automatically updated.   LOCATE allows  you to change the  last modify
  1791.      date for any file or group of files that match a search specification.
  1792.  
  1793.      Programmers can use this option to set the dates (and times  using the
  1794.      /SETT=  option) of application programs  to the revision date/ release
  1795.      date  before  distribution.    This  also  is  helpful  when  using  a
  1796.      programmer's   MAKE  utility  that  rebuilds  programs  based  on  the
  1797.      date/time stamp of source files (see the NOTE below).
  1798.  
  1799.      The general form of this option is /SETD=[new date].   You may  insert
  1800.      white  space for  readability  if  you like.    In  addition, you  may
  1801.      optionally the century year (19xx is the assumed default).
  1802.  
  1803.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1804.      │   Use the special keyword "TODAY" to denote the current date.     │▄
  1805.      │   For example, /SETD=TODAY may be used to set the last modify     │█
  1806.      │   date to the current date.  Likewise, when using the /SETT=      │█
  1807.      │   option to set the last modify time (see next section), you may  │█
  1808.      │   use the keyword "NOW" to denote the current time.  Programmers  │█
  1809.      │   could use these options to "TOUCH" a file and thereby force     │█
  1810.      │   inclusion by a MAKE utility (you may wish to create a batch     │█
  1811.      │   file to do this, i.e., LOCATE %1 /SETD=TODAY /SETT=NOW %2 %3)   │█
  1812.      └───────────────────────────────────────────────────────────────────┘█
  1813.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1814.  
  1815.      The following command  searches for all *.H files  under F:\SOURCE and
  1816.      sets the last modify date to 4-1-1993.
  1817.  
  1818.      LOCATE F:\SOURCE\*.H /SETD=4-1-93  ... same as /SETD=04-01-1993
  1819.  
  1820.  
  1821.  
  1822.  
  1823.      ══════════════════════════════════════════════════════════════════════
  1824.      LOCATE: version 2.10                                           page 28
  1825.  
  1826.  
  1827.      The next  command finds KSTUFF.EXE  in the current directory  and sets
  1828.      the last modify date to the current date.
  1829.  
  1830.      LOCATE KSTUFF.EXE /C /SETD=TODAY   ... space added for readability
  1831.  
  1832.      /SETT= Option: Set File Time
  1833.      ────────────────────────────
  1834.      For every file and directory,  DOS maintains a last modified  date and
  1835.      time.   When  you create  or modify  a file,  this date  and time  are
  1836.      automatically updated.   LOCATE  allow you to  change the  last modify
  1837.      time for any file or group of files that match a search specification.
  1838.  
  1839.      As stated above (see  /SETD=), programmers can use this  option to set
  1840.      the  dates and  times of  application programs  to the  revision date/
  1841.      release date before distribution. etc.  In addition, the /SETT= option
  1842.      can be  used to  force inclusion  of source  files when  using a  MAKE
  1843.      utility (see the NOTE in the previous section).
  1844.  
  1845.      The general form of this option is /SETT=[new time].  You should enter
  1846.      the time in 24 hour format; 0:00 is midnight, 12:00 is noon, and 23:59
  1847.      is  11:59pm.    You should  NOT  enter  a value  for  seconds  (:00 is
  1848.      assumed).
  1849.  
  1850.      The following command searches for all *.EXE files under F:\SOURCE and
  1851.      sets the last modify time to 1:00am.
  1852.  
  1853.      LOCATE F:\SOURCE\.EXE /SETT=1:00   ... ":00" is optional (default)
  1854.  
  1855.      The next  command finds KSTUFF.EXE  in the current directory  and sets
  1856.      the last modify time to midnight (12:00am as displayed by DOS).
  1857.  
  1858.      LOCATE KSTUFF.EXE /C /SETT=0       ... same as /SETT=0:00
  1859.  
  1860.      /SETA= Option: Set File Attributes
  1861.      ──────────────────────────────────
  1862.      For every  file, DOS  maintains an attribute  byte that  contains four
  1863.      flags  (or bits)  as described  in the  preceding sections.   A  brief
  1864.      description of  these attributes is provided here  for your reference.
  1865.      Please refer to "/A= Option", page 21, for additional information.
  1866.  
  1867.      Archive   If the file has been modified, then this flag is set ON.
  1868.  
  1869.      ReadOnly  This flag prevents a file from being changed or deleted.
  1870.  
  1871.      Hidden    This flag prevents the file from being displayed.
  1872.  
  1873.      System    This flag designates the file as a system file.
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.      ══════════════════════════════════════════════════════════════════════
  1882.      LOCATE: version 2.10                                           page 29
  1883.  
  1884.  
  1885.      LOCATE  allows you  to modify the  attributes for  files that  match a
  1886.      search specification.  You can use this option to flag important files
  1887.      as ReadOnly (i.e.,  master documents).  You may wish to set the Hidden
  1888.      attribute for  files that you want to protect  from prying eyes.  Note
  1889.      that  you can still use the file (if  you know the name).  You can set
  1890.      the  Archive attribute  ON to flag  a file  as "modified" (to  force a
  1891.      backup, etc.).
  1892.  
  1893.      Another   important  application  of  the  /SETA=  option  is  turning
  1894.      attribute bits/flags  OFF.  For  example, you  may wish to  remove the
  1895.      Hidden or ReadOnly attribute  from a file or  group of files.  If  you
  1896.      are using  the /SETA= option  to remove protected  attributes (Hidden,
  1897.      System, or ReadOnly) in order to DELETE a file or group of files, then
  1898.      you can use the  /DEL option instead.  Please see  Chapter 5, page 32,
  1899.      for more information.
  1900.  
  1901.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  1902.      │   DOS installs two important system files on the root directory   │▄
  1903.      │   of your boot drive, MSDOS.SYS and IO.SYS.  These files are      │█
  1904.      │   Hidden, System, and ReadOnly.  You should NOT modify these      │█
  1905.      │   file attributes.                                                │█
  1906.      └───────────────────────────────────────────────────────────────────┘█
  1907.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1908.  
  1909.      When specifying  the  /SETA= option,  list  any attributes  (by  first
  1910.      letter only) to turn  ON.  If you want to turn  an attribute OFF, then
  1911.      precede the attribute letter with a hyphen "-".
  1912.  
  1913.      The following command searches for all *.EXE files under F:\SOURCE and
  1914.      sets the Archive attribute flag ON.
  1915.  
  1916.      LOCATE F:\SOURCE\.EXE /SETA=A
  1917.  
  1918.      The following command searches for all *.EXE files under F:\SOURCE and
  1919.      sets the Hidden and ReadOnly attributes ON.
  1920.  
  1921.      LOCATE F:\SOURCE\.EXE /SETA=HR
  1922.  
  1923.      The next  command finds KSTUFF.EXE  in the current directory  and sets
  1924.      the ReadOnly attribute OFF.
  1925.  
  1926.      LOCATE KSTUFF.EXE /C /SETT=-R
  1927.  
  1928.      Note that  you  can turn  attributes  ON and  OFF concurrently.    For
  1929.      example, the following command searches  for all *.COM files under the
  1930.      current directory and sets the Archive attribute OFF, and the ReadOnly
  1931.      attribute ON.
  1932.  
  1933.      LOCATE *.COM /C /SETA=-AR          ... or /SETA=R-A or /SETA= R -A
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.      ══════════════════════════════════════════════════════════════════════
  1940.      LOCATE: version 2.10                                           page 30
  1941.  
  1942.  
  1943.      /SETO= Option: Set File Owner
  1944.      ─────────────────────────────
  1945.      If you are  running LOCATE in a  Novell NetWare environment,  then you
  1946.      may  change the  owner  of  files using  the  powerful /SETO=  option.
  1947.      Please see  "/O= Option", page  22, for detailed information  on using
  1948.      the LOCATE owner option.
  1949.  
  1950.      This is a great feature  for network administrators.  For  example, if
  1951.      you install an application under a personal login (not SUPERVISOR) and
  1952.      later  want to  assign  ownership  of all  files  in the  subdirectory
  1953.      structure to  the SUPERVISOR,  then  issue the  following command  and
  1954.      LOCATE will quickly complete the change.
  1955.  
  1956.      LOCATE . /S /SETO=SUPERVISOR       ... /S = current DIR and under
  1957.  
  1958.      To change ownership  for a single file  in the current directory,  use
  1959.      the following command (sets the owner to DRH for PRUNE.EXE).
  1960.  
  1961.      LOCATE PRUNE.EXE /C /SETO=DRH      ... /C = current DIR only
  1962.  
  1963.      Note that you must specify a  valid user name for the specified  path.
  1964.      You cannot leave the  user option blank.  As with  the /O= option, all
  1965.      local drives are ignored when using /SETO= to change the file owner.
  1966.  
  1967.  
  1968.      Network Considerations for Using /SET Options
  1969.      ═════════════════════════════════════════════
  1970.      As stated,  the attribute byte  (archive bit) is NOT  changed when you
  1971.      use /SET to  modify any of the  file properties (unless you  change it
  1972.      explicitly  with /SETA=).   The  "Last  Accessed Date"  (not the  last
  1973.      modify  date discussed  above) that  is maintained  in Novell  NetWare
  1974.      environments IS updated when you use the  /SET option to change a file
  1975.      property.  See your NetWare documentation for detailed information.
  1976.  
  1977.      Note  that NetWare requires minimum access rights for many of the /SET
  1978.      operations  performed by  LOCATE.   Please  refer  to "Network  Access
  1979.      Requirements",  page 37,  for detailed  rights  requirements for  your
  1980.      version of NetWare.
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.      ══════════════════════════════════════════════════════════════════════
  1998.      LOCATE: version 2.10                                           page 31
  1999.  
  2000.  
  2001.                                         Chapter 5: Deleting Files with /DEL
  2002.      ──────────────────────────────────────────────────────────────────────
  2003.  
  2004.      Overview of /DEL Option
  2005.      ═══════════════════════
  2006.      The /DEL option  allows you to delete files that match a LOCATE search
  2007.      specification.  You may be thinking that DOS already has a DEL command
  2008.      to  remove files;  and if you  want to  delete one  or all files  in a
  2009.      directory, then you are right!   However, if you want to delete  files
  2010.      based on more sophisticated criterion, or  if you want to delete files
  2011.      are protected by DOS file attributes, then LOCATE to the rescue.
  2012.  
  2013.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  2014.      │   When using /DEL to remove files, LOCATE will automatically      │▄
  2015.      │   remove the protected attributes (ReadOnly, System, or Hidden)   │█
  2016.      │   if necessary.  If you are certain that you want to remove a     │█
  2017.      │   file or group of files, and DOS responds with "Access Denied",  │█
  2018.      │   then use the LOCATE /DEL option to remove the files instead.    │█
  2019.      └───────────────────────────────────────────────────────────────────┘█
  2020.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  2021.  
  2022.      When you  specify the /DEL  option, locate will display  the following
  2023.      prompt  for  each  file  to  be  deleted.    To  suppress the  initial
  2024.      confirmation prompt, use the /AUTO option (see page 14).
  2025.  
  2026.      DELETE File [X:\PATH\FILE.EXT]:  <Y>es  <N>o  <D>elete All  <A>bort:
  2027.  
  2028.      At the confirmation prompt, specify <Y>es to DELETE the displayed file
  2029.      and continue.   Select  <N>o to  skip this  file.   Select <A>bort  to
  2030.      cancel  the search  immediately.   Select <D>elete  All to  DELETE the
  2031.      current  and ALL  subsequent files  found.   Please  use caution  when
  2032.      selecting the <D>elete All option.  You must ensure that all remaining
  2033.      files  in  the  search  specification  should be  deleted.    See  the
  2034.      important note below.
  2035.  
  2036.      Note  that LOCATE  displays a  message  for each  file  deleted.   The
  2037.      following display indicates that SS_RMBAK.13 has been deleted.
  2038.  
  2039.      F:\WP51\DOC\               SS_RMLOC.13       6592 10-03-92  3:21p A---
  2040.      F:\WP51\DOC\               SS_RMBAK.13       6592 10-03-92  3:23p ----
  2041.      └─ Deleted
  2042.  
  2043.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  2044.      │                                                                   │▄
  2045.      │   **** P l e a s e  Use the /DEL option With  C A U T I O N ****  │█
  2046.      │                                                                   │█
  2047.      │   If you accidently DELETE a file or group of files, then you     │█
  2048.      │   MAY be able to recover the file(s) with the UNDELETE utility    │█
  2049.      │   (DOS 5) or with any one of the commercial recovery tools        │█
  2050.      │   (i.e., Norton Utilities, PC Tools, etc.).                       │█
  2051.      └───────────────────────────────────────────────────────────────────┘█
  2052.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  2053.  
  2054.  
  2055.      ══════════════════════════════════════════════════════════════════════
  2056.      LOCATE: version 2.10                                           page 32
  2057.  
  2058.  
  2059.                                Chapter 6: Using the /BATCH and /RUN Options
  2060.      ──────────────────────────────────────────────────────────────────────
  2061.  
  2062.      Overview of /BATCH Option
  2063.      ═════════════════════════
  2064.      The /BATCH option allows you to  build batch files based on the  files
  2065.      found in a LOCATE search specification.  This is a great way to find a
  2066.      group  of  files and  perform some  command  on the  files.   For more
  2067.      information on batch files and how they are used, please refer to your
  2068.      DOS documentation.
  2069.  
  2070.      Programmers can  use LOCATE to  find all files containing  a specified
  2071.      function (using  the /TEXT option),  and then create  a batch file  to
  2072.      load each file  into an editor.   You could use the  same technique to
  2073.      launch a word processor with all documents containing specified text.
  2074.  
  2075.      Like the /TEXT option, the /BATCH option supports both  a command line
  2076.      and a prompted method.  To have LOCATE prompt for the batch file  name
  2077.      and format  line, simply use the /BATCH option.   To specify the batch
  2078.      file  and/or format line on the command  line, use the /BF=<file name>
  2079.      and /BATCH="format line" options.  Note  that you may specify the /BF=
  2080.      option in the LOCATE environment  variable (i.e., /BFtemp.bat).  Refer
  2081.      to "Setting  LOCATE Defaults" on  page 7 for detailed  information and
  2082.      instructions.
  2083.  
  2084.      When you  specify the /BATCH  option, LOCATE  will prompt you  for the
  2085.      name of the batch file to create.  You may  enter any valid file name;
  2086.      if you  do not specify a path,  the current directory is  assumed.  If
  2087.      you do not supply an file extension, then ".BAT" will be used.  If you
  2088.      specify the name  of an existing file,  it will be overwritten.   Note
  2089.      that  you may simply  press ENTER (and  leave the file  blank) at this
  2090.      prompt to cancel the /BATCH option and abort.
  2091.  
  2092.      Note that  you must enter  a valid  DOS file  name.  If  you enter  an
  2093.      invalid name or the name of a  DOS device (CON: or PRN:, etc.), LOCATE
  2094.      will return to the file name prompt.
  2095.  
  2096.      After  entering  the batch  file name,  you will  be prompted  for the
  2097.      format line.   Again, you may simply press ENTER (and leave the format
  2098.      line blank) to cancel the /BATCH and abort.  The format line specifies
  2099.      the format  and content of each line  written to the batch  file.  For
  2100.      each file  matching the search  specification, LOCATE writes  a single
  2101.      line to the batch file using your format line as a guide.
  2102.  
  2103.      You  may include  any text  you like  on the  format line.    The file
  2104.      specific  information  is  included  on  this  line by  using  special
  2105.      replacement tokens (see sections below for detailed information).  For
  2106.      example, if the batch file line  should read "PRINT <file name>", then
  2107.      you must use a replacement token to instruct LOCATE to place  the file
  2108.      name in the proper position after the PRINT command  (in this example,
  2109.      the format line should read "PRINT &s").
  2110.  
  2111.  
  2112.  
  2113.      ══════════════════════════════════════════════════════════════════════
  2114.      LOCATE: version 2.10                                           page 33
  2115.  
  2116.  
  2117.      Note that you must include at least one valid replacement token in the
  2118.      format line.   If you  attempt to specify  an incomplete format  line,
  2119.      LOCATE will return to the format line prompt.
  2120.  
  2121.      For each  file in  the search specification,  LOCATE will  display the
  2122.      following confirmation prompt before writing the batch file entry:
  2123.  
  2124.      BATCH [< command spec>]: <Y>es <N>o <I>nclude All <A>bort: Y
  2125.  
  2126.      At the confirmation prompt, select  <Y>es to include the  file/command
  2127.      in the batch file.  Select <N>o to skip the current file and continue.
  2128.      Select <I>nclude All  to include the current and  all remaining files.
  2129.      Select <A>bort to stop the scan and return to DOS.
  2130.  
  2131.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  2132.      │   The most common use of the /BATCH option is running a command   │▄
  2133.      │   or program on the files matching a search specification.  If    │█
  2134.      │   you want to DELETE files, you could make a batch file with      │█
  2135.      │   the DOS command DEL (i.e., "DEL <file name>"); however, the     │█
  2136.      │   /DEL option is much easier.  Please refer to Chapter 5,         │█
  2137.      │   page 32, more information/ instructions.                        │█
  2138.      └───────────────────────────────────────────────────────────────────┘█
  2139.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  2140.  
  2141.      Overview of /RUN Option
  2142.      ═══════════════════════
  2143.      The /RUN option  is identical to the  /BATCH option (see the  previous
  2144.      section); however, the  specified command is executed  immediately for
  2145.      each file.   The following  confirmation prompt is displayed  for each
  2146.      file in the LOCATE search specification:
  2147.  
  2148.      RUN [< command spec>]: <Y>es <N>o <R>un All <A>bort: Y
  2149.  
  2150.      At the confirmation prompt, select  <Y>es to run the specified command
  2151.      using the current  file entry.  Select  <N>o to skip the  current file
  2152.      and continue.  Select <R>un All  to run the current and all  remaining
  2153.      files.  Select <A>bort to stop the scan and return to DOS.
  2154.  
  2155.  
  2156.      Using the Replacement Tokens
  2157.      ════════════════════════════
  2158.      The  previous sections  introduced  the use  of replacement  tokens to
  2159.      create the /BATCH and /RUN format  lines.  This section describes each
  2160.      replacement  token.  Note  that each  token is  prefixed with  the "&"
  2161.      character.  These  tokens may be  specified in either  upper or  lower
  2162.      case.
  2163.  
  2164.      When LOCATE  finds a replacement token  in your format line,  then the
  2165.      appropriate   component  of   the  drive:path/file   specification  is
  2166.      substituted for  the token.   Note that format  lines must  contain at
  2167.      least one valid token.
  2168.  
  2169.  
  2170.  
  2171.      ══════════════════════════════════════════════════════════════════════
  2172.      LOCATE: version 2.10                                           page 34
  2173.  
  2174.  
  2175.      See the table  (next page) for  a list of all  valid tokens.   Most of
  2176.      these  tokens are  displayed for  your  reference at  the format  line
  2177.      prompt.
  2178.  
  2179.         Token  Description                   Example
  2180.         ─────  ────────────────────────────  ─────────────────────────
  2181.           &v   volume/ drive id              F:
  2182.           &r   root of volume                F:\
  2183.           &p   volume with path              F:\HOME
  2184.           &d   directory only                \HOME
  2185.           &b   directory with backslash      \HOME\
  2186.           &f   file name                     CONGRESS
  2187.           &e   extension (if available)      .LTR
  2188.           &n   file name and extension       CONGRESS.LTR
  2189.           &s   complete file specification   F:\HOME\CONGRESS.LTR
  2190.           &&   & character                   &
  2191.  
  2192.      Note  that  some token  values  overlap  others; the  duplication  was
  2193.      intentionally  incorporated for flexibility.  For many operations, you
  2194.      may  find several  variations can  be  specified to  achieve the  same
  2195.      result.  For example, "&v\" is the same as "&r".
  2196.  
  2197.      Note  that  the only  difference  between &d  and  &b is  the trailing
  2198.      backslash "\" character (see the example above).  If a file is located
  2199.      in the root directory, then  &d and &b are  equal (the value is  "\").
  2200.      And so &d never displays the trailing  backslash UNLESS the file is in
  2201.      the root directory.
  2202.  
  2203.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  2204.      │   If your search specification includes the batch file that is    │▄
  2205.      │   being created by the /BATCH option, then the file will be       │█
  2206.      │   ignored, e.g. the batch file written will NOT include itself.   │█
  2207.      └───────────────────────────────────────────────────────────────────┘█
  2208.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  2209.  
  2210.      Creating Batch Files
  2211.      ════════════════════
  2212.      The following  command finds  all batch files  (*.BAT) in  the current
  2213.      directory that  contain a  specified text; for  each matching  file, a
  2214.      batch file entry is written that prints the file using DOS PRINT.
  2215.  
  2216.      LOCATE .BAT /C /TEXT /BATCH
  2217.      ... specify search text at the first prompt
  2218.      ... specify batch file name at the second prompt = PBAT.BAT
  2219.      ... specify format line = "PRINT &n"  ... NOTE: leave out quote marks
  2220.  
  2221.      Results:                           Batch File:
  2222.  
  2223.      F:\HOME\CONGRESS.LTR          =>   PRINT CONGRESS.LTR
  2224.      F:\HOME\MASTER                =>   PRINT MASTER
  2225.      F:\HOME\SALE    .DOC          =>   PRINT SALE.DOC
  2226.  
  2227.  
  2228.  
  2229.      ══════════════════════════════════════════════════════════════════════
  2230.      LOCATE: version 2.10                                           page 35
  2231.  
  2232.  
  2233.      To  run  the PRINT  command  immediately  for  each file  (instead  of
  2234.      generating the  batch file,  see the previous  example), use  the /RUN
  2235.      option.  Each command that would  normally be written to a batch  file
  2236.      will be executed by LOCATE.   Note that you cannot use  the /BATCH and
  2237.      /RUN commands concurrently.
  2238.  
  2239.      The  following command instructs  LOCATE to run  the following command
  2240.      for a  group of  files: NCOPY  <file>.<ext> \NEWDIR\<file>.$$$.   Note
  2241.      that this command simply  copies all files to  \NEWDIR\ with the  same
  2242.      name but  a new extension (always .$$$).   In this example, the format
  2243.      line is provided on the command line.
  2244.  
  2245.      LOCATE . /C /RUN="NCOPY &N \NEWDIR\&F.$$$"
  2246.  
  2247.      The following command builds a  batch file (COPYIT.BAT) to execute the
  2248.      commands specified in the previous example.
  2249.  
  2250.      LOCATE . /C /BATCH="NCOPY &N \NEWDIR\&F.$$$" /BF=COPYIT.BAT
  2251.  
  2252.      To have LOCATE prompt  for the format line in the  above examples, the
  2253.      following commands may be used instead.
  2254.  
  2255.      LOCATE . /C /RUN         ... to prompt for /RUN format line
  2256.      LOCATE . /C /BATCH       ... to prompt for format line and file name
  2257.  
  2258.      Like the /TEXT option, when specifying /BATCH= or /RUN= on the command
  2259.      line, the '"'  (double quote) marks are required  (unless specifying a
  2260.      single token (character or word)  with no leading or trailing spaces).
  2261.      To embed the '"' character in the search string, precede the character
  2262.      with '\'  (backslash).   If using  the prompted method,  then the  '\'
  2263.      character  is  NOT  required  (it will  be  interpreted  literally  if
  2264.      provided).
  2265.  
  2266.      Many  users prefer to  set the default  batch file name  in the LOCATE
  2267.      environment variable (to TEMP.BAT, for example).  If you choose to set
  2268.      a default name, you may override it at any time by simply specifying a
  2269.      new  name on  the command  line or  using the  /BF- option.   Refer to
  2270.      "Setting  LOCATE  Defaults" on  page  7 for  detailed  information and
  2271.      instructions.
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282.  
  2283.  
  2284.  
  2285.  
  2286.  
  2287.      ══════════════════════════════════════════════════════════════════════
  2288.      LOCATE: version 2.10                                           page 36
  2289.  
  2290.  
  2291.                                             Chapter 7: Miscellaneous Topics
  2292.      ──────────────────────────────────────────────────────────────────────
  2293.  
  2294.      Network Access Requirements
  2295.      ═══════════════════════════
  2296.      LOCATE  offers specific  features and  functionality  for users  under
  2297.      Novell NetWare, Advanced 2.1 or  higher.  Some features are restricted
  2298.      to users  that have been granted  specific access privileges.   If you
  2299.      are not sure what  rights you have, please  consult with your  network
  2300.      administrator.
  2301.  
  2302.      Please note that this section applies to Novell NetWare ONLY.   LOCATE
  2303.      has been  tested under Novell Netware 2.12, 2.2,  and 3.11.  The table
  2304.      below outlines required rights  for users under version  2.1x (NetWare
  2305.      286) and version 3.x (NetWare 386).
  2306.  
  2307.      Operation                          NetWare 2.1x        NetWare 2.2-3.x
  2308.      ────────────────────────────────── ─────────────────── ───────────────
  2309.      Read/Display file owner            (S)earch            (F)ile Scan
  2310.  
  2311.      Set new file owner                 Supervisor or       Supervisor or
  2312.                                         Equivalent          Equivalent **
  2313.  
  2314.      Set file attributes on/off         (S)earch            (F)ile Scan
  2315.                                         (M)odify            (M)odify
  2316.  
  2317.      Set file date or file time         (S)earch            (F)ile Scan
  2318.                                         (M)odify            (M)odify
  2319.                                         (O)pen              (R)ead
  2320.                                         (R)ead              (W)rite
  2321.  
  2322.      Delete files (/DEL option)         (D)elete            (E)rase
  2323.      (if Hid, Sys, or ReadOnly)         (S)earch            (F)ile Scan
  2324.                                         (M)odify            (M)odify
  2325.      ────────────────────────────────── ─────────────────── ───────────────
  2326.  
  2327.      **   Under  NetWare  3.11, a  user  may  set  a  new file  owner  with
  2328.           (S)upervisor rights  in the applicable directory.   In this case,
  2329.           supervisor equivalency is not necessarily required.
  2330.  
  2331.      Note that  under either  environment, you can  use the  RIGHTS program
  2332.      (usually  located  in  SYS:PUBLIC)  to  determine  your  rights for  a
  2333.      specified file or  in a specified directory.  For  additional help and
  2334.      information, please consult  the NetWare reference or see your network
  2335.      administrator.
  2336.  
  2337.  
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345.      ══════════════════════════════════════════════════════════════════════
  2346.      LOCATE: version 2.10                                           page 37
  2347.  
  2348.  
  2349.      Alternate Option Specifications
  2350.      ═══════════════════════════════
  2351.      In   many  cases,  LOCATE   supports  several  variations   of  option
  2352.      specifications; this allows  you to use the  option specification that
  2353.      makes the most sense to YOU.   For example, you may think of a logical
  2354.      disk as a "drive" or a "disk", even though I  generally refer to it as
  2355.      a "volume".    As outlined  in  Chapter 2,  white  space within  these
  2356.      options is  ignored, so  "/OWNER NOT  = DRH"  may be  used instead  of
  2357.      "/OWNERNOT=DRH" if you prefer (for readability).
  2358.  
  2359.      Standard Option     Supported Alternative Options
  2360.      ─────────────────── ──────────────────────────────────────────────────
  2361.  
  2362.      /###                (none)
  2363.      /A=                 /ATTR=, /ATTRIBUTE=, /ATTRIBUTES=
  2364.      /AGE=               (none)
  2365.      /AUTO               /NOCONFIRM
  2366.      /BATCH[=]           /MB[=], /MAKEB[=], /MAKEBATCH[=], /B[=]
  2367.      /BF...              /BATCHFILE[=]... (from command line only)
  2368.      /BIOS               (none)
  2369.      /C                  (none)
  2370.      /CASE               (none)
  2371.      /CD                 (none)
  2372.      /D=                 /DATE=
  2373.      /DNOT=              /D!=, /DATENOT=, /DATE!=
  2374.      /DEL                /DELETE, /ERASE
  2375.      /DIR                (none)
  2376.      /?                  /HELP
  2377.      /M                  /MONO
  2378.      /NOCASE             (none)
  2379.      /NONET              (none)
  2380.      /NOOCCUR            (none)
  2381.      /O=                 /OWNER=
  2382.      /OCCUR              (none)
  2383.      /ONOT=              /O!=, /OWNERNOT=, /OWNER!=
  2384.      /P                  /PAUSE
  2385.      /PATH               (none)
  2386.      /Q                  /QUIET
  2387.      /R                  /REGISTER
  2388.      /RUN[=]             (none)
  2389.      /S                  /SUB
  2390.      /S=                 /SIZE=
  2391.      /SETA=              /SETATTR=, /SETATTRIBUTE=, /SETATTRIBUTES=
  2392.      /SETD=              /SETDATE=
  2393.      /SETO=              /SETOWNER=
  2394.      /SETT=              /SETTIME=
  2395.      /T=                 /TIME=
  2396.      /TNOT=              /T!=, /TIMENOT=, /TIME!=
  2397.      /TEXT               /FIND, /SEARCH
  2398.      /TL###              /TL[=]### (from command line only)
  2399.      /V=                 /VOL=, /VOLUME=, /DRIVE=, /DRIVES=, /DISK=
  2400.  
  2401.  
  2402.  
  2403.      ══════════════════════════════════════════════════════════════════════
  2404.      LOCATE: version 2.10                                           page 38
  2405.  
  2406.  
  2407.      Redirecting Output
  2408.      ══════════════════
  2409.      LOCATE supports standard  DOS redirection.  You  may wish to  use this
  2410.      feature to redirect the output display to a printer or to a file.  For
  2411.      example,  you   may  want  to   list  all  files  matching   a  search
  2412.      specification on your printer for review.
  2413.  
  2414.      To redirect  standard output for LOCATE (or any other DOS program that
  2415.      supports redirection),  simply append  the ">"  symbol to  the command
  2416.      line followed by a device or filename.
  2417.  
  2418.      Examples:
  2419.  
  2420.      LOCATE \.COM > COMFILES.LST        ... list to file: COMFILES.LST
  2421.      LOCATE \.COM > PRN                 ... list to printer (LPT1: or PRN:)
  2422.      LOCATE \.COM > LPT2:               ... list to printer on LPT2:
  2423.      LOCATE \.COM > NUL                 ... list to NUL device (void)
  2424.  
  2425.      Note that LOCATE will not allow you to redirect output to  the console
  2426.      device (CON) simply because it makes little sense to do  so.  For more
  2427.      information on DOS  devices and DOS redirection, please  refer to your
  2428.      DOS reference manual.
  2429.  
  2430.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  2431.      │   When redirecting to devices (i.e., printers), please ensure     │▄
  2432.      │   that the printer is online and ready.  If a device is not       │█
  2433.      │   ready, LOCATE will display a "Write Fault" error and abort.     │█
  2434.      └───────────────────────────────────────────────────────────────────┘█
  2435.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  2436.  
  2437.      When you redirect  output to a file or to a  device (i.e., a printer),
  2438.      LOCATE  detects  the  redirection  and  ensures  that  you  still  see
  2439.      important  display  information  on-screen (for  status  and  prompts,
  2440.      etc.).   You cannot  suppress this display  entirely, although  the /Q
  2441.      option may be  used to suppress  current directory/ file  information.
  2442.      See "/Q Option", page 13, for additional information.
  2443.  
  2444.      In  addition, when  redirection is  detected, the  /P pause  option is
  2445.      automatically disabled  (if required);  screen pauses  are not  needed
  2446.      when redirecting output to another device or to a file.
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.  
  2453.  
  2454.  
  2455.  
  2456.  
  2457.  
  2458.  
  2459.  
  2460.  
  2461.      ══════════════════════════════════════════════════════════════════════
  2462.      LOCATE: version 2.10                                           page 39
  2463.  
  2464.  
  2465.      Error Messages
  2466.      ══════════════
  2467.      This  section  contains  an alphabetical  listing  of  all  errors and
  2468.      warnings generated  by LOCATE.   Note that  some errors may  be simply
  2469.      notifications (that allow  you to  continue), while  others are  fatal
  2470.      (force you to quit/abort).
  2471.  
  2472.      If you receive an error that is not listed here, please contact System
  2473.      Solutions  Company  for  support.    See  Appendix  E,  page  55,  for
  2474.      instructions and information.
  2475.  
  2476.      Cannot Use /BATCH with /RUN function
  2477.      ────────────────────────────────────
  2478.      You  cannot perform  a /BATCH  file creation  AND use the  /RUN option
  2479.      concurrently.
  2480.  
  2481.      Cannot Use /DEL with any /SET function
  2482.      ──────────────────────────────────────
  2483.      This error is the result  if attempting to use any /SET option AND the
  2484.      /DEL option concurrently.   This usually makes no  sense (why set  any
  2485.      file option if the file  is going to be deleted?).   Note that if  you
  2486.      are  attempting to use  /SET to turn off  the ReadOnly, System, and/or
  2487.      Hidden attributes in order for /DEL to  delete the files, then you may
  2488.      simply use /DEL alone.  LOCATE automatically removes these "protected"
  2489.      attributes in order to delete files when using the /DEL option.
  2490.  
  2491.      Cannot Use /DEL with /BATCH function
  2492.      ────────────────────────────────────
  2493.      LOCATE does not allow you to use the /DEL option to remove files while
  2494.      creating  a batch  file with the  /BATCH option.   This is  usually an
  2495.      error,  since any  batch file  commands  would be  meaningless if  you
  2496.      deleted the files with /DEL.
  2497.  
  2498.      Cannot Use /DEL with /RUN function
  2499.      ──────────────────────────────────
  2500.      This error is the result if attempting to use the /RUN option  AND the
  2501.      /DEL option concurrently.  You should  first use the /RUN option, then
  2502.      perform the /DEL option if required.
  2503.  
  2504.      Device Error [<Device Name and Error>]: <R>etry <I>gnore <A>bort:
  2505.      ─────────────────────────────────────────────────────────────────
  2506.      A fatal INT 24 error has  occurred for the specified device.  You  may
  2507.      select to retry  (useful for drive and printer errors),  to ignore, or
  2508.      to abort.   The  device is  usually a  disk drive  or a  printer.   If
  2509.      redirecting output to a printer, ensure that the printer is online and
  2510.      ready.  If  searching a removable disk (floppy,  CD-ROM, etc.), ensure
  2511.      that the disk is mounted and ready (drive door closed, etc.).
  2512.  
  2513.  
  2514.  
  2515.  
  2516.  
  2517.  
  2518.  
  2519.      ══════════════════════════════════════════════════════════════════════
  2520.      LOCATE: version 2.10                                           page 40
  2521.  
  2522.  
  2523.      Error Creating File [<Batch File Name>]; Check /BATCH Parameter
  2524.      ───────────────────────────────────────────────────────────────
  2525.      LOCATE could  not create  the specified batch  file.  Ensure  that the
  2526.      name is valid.  If  you are in a network environment,  then this error
  2527.      may be  the result  of specifying  an existing  file that  is in  use.
  2528.      Also, you  must ensure  that you have  create/write permission  in the
  2529.      current directory.   Note that if you specify  the name of an existing
  2530.      file, LOCATE overwrites the specified file.
  2531.  
  2532.      Error Deleting File [<File Name>]
  2533.      ─────────────────────────────────
  2534.      The specified file  could not be deleted (when using /DEL option).  If
  2535.      you  are in  a network  environment, ensure  that you  have sufficient
  2536.      access  rights  to   delete  the   file(s).     See  "Network   Access
  2537.      Requirements", page 37, for specific rights requirements.
  2538.  
  2539.      Error Getting Owner [<File Name>]
  2540.      ─────────────────────────────────
  2541.      LOCATE could not read the  NetWare file owner.  Please  contact System
  2542.      Solutions Company and report this error.
  2543.  
  2544.      Error Reading File [<File Name>]
  2545.      ────────────────────────────────
  2546.      This error  occurs if  LOCATE cannot  open  a file  in read-only  mode
  2547.      (while using the /TEXT option).  If you are in a  network environment,
  2548.      ensure  that the file is  not in use.  Note  that LOCATE supports file
  2549.      sharing;  however, another  user may  have the  file open  exclusively
  2550.      (denying reads and writes from other stations).
  2551.  
  2552.      Error Running Command [<File Name>]
  2553.      ───────────────────────────────────
  2554.      This  error  results when  LOCATE  cannot execute  the  specified /RUN
  2555.      command for a  file.  LOCATE invokes DOS to run the requested program,
  2556.      so  this error  actually indicates  that  the DOS  command interpreter
  2557.      could not  be found  or loaded.   You  may be  very low  on memory  or
  2558.      perhaps your COMSPEC is missing or invalid.  See you DOS documentation
  2559.      for additional information.
  2560.  
  2561.      Error Setting <Property> [<File Name>]
  2562.      ──────────────────────────────────────
  2563.      This  error occurs  when LOCATE  cannot SET  the file  property (date,
  2564.      time, owner, or  attribute) for the specified  file.  If you are  in a
  2565.      network  environment, ensure that you have sufficient access rights to
  2566.      set file  property.  See  "Network Access Requirements", page  37, for
  2567.      specific rights requirements.
  2568.  
  2569.      Fatal Error Changing Directories
  2570.      ────────────────────────────────
  2571.      This is  a fatal error.   If you are  in a network environment,  it is
  2572.      possible  that  another  station  deleted  a  directory  or  group  of
  2573.      directories.  Please contact System Solutions Company and  report this
  2574.      error.
  2575.  
  2576.  
  2577.      ══════════════════════════════════════════════════════════════════════
  2578.      LOCATE: version 2.10                                           page 41
  2579.  
  2580.  
  2581.      Fatal Error Getting Directory Information
  2582.      ─────────────────────────────────────────
  2583.      See "Fatal Error Changing Directories".
  2584.  
  2585.      Invalid Time Specification; Check <Time Option> Parameter
  2586.      ─────────────────────────────────────────────────────────
  2587.      You have entered an invalid time in the /T= or /SETT= option.  You may
  2588.      have entered  an invalid time  range (i.e., /T=3:00-1:00).   Note that
  2589.      time options should be  entered in 24 hour  format (0:00 is  midnight,
  2590.      12:00 is  noon, and 23:59 is 11:59pm).   Please refer to "/T= Option",
  2591.      page 19, 20, for additional information.
  2592.  
  2593.      Invalid Owner for Specified Path; Check Path and <Option> Parameter
  2594.      ───────────────────────────────────────────────────────────────────
  2595.      The specified owner  name is not valid  for the specified path.   When
  2596.      you use the  /O= or /SETO= option,  LOCATE examines the target  search
  2597.      path(s), then queries  the appropriate servers  to validate the  user.
  2598.      Double check both the user name spelling and the search path.
  2599.  
  2600.      Invalid Size Specification; Check /S Parameter
  2601.      ──────────────────────────────────────────────
  2602.      You have entered  an invalid or missing  size in the /S=  option.  You
  2603.      may have  specified an invalid  size range (i.e., /S=100-20).   Please
  2604.      refer to "/S= Option", page 15, for additional information.
  2605.  
  2606.      Invalid Drive/ Directory Specification
  2607.      ──────────────────────────────────────
  2608.      You have specified an invalid search drive or directory.
  2609.  
  2610.      Invalid File Specification
  2611.      ──────────────────────────
  2612.      You have entered an invalid  DOS file name.  This error will result if
  2613.      the  name contains illegal  characters or if  the specified  name is a
  2614.      device name (CON:, PRN:, etc.).
  2615.  
  2616.      Invalid Age Specification; Range is 0 (Today) to 365
  2617.      ────────────────────────────────────────────────────
  2618.      The /AGE= option is missing or invalid.  You should enter the value in
  2619.      days between  0 and 365,  inclusive.  Please refer  to "/AGE= Option",
  2620.      page 19, for additional information.
  2621.  
  2622.      Invalid Date Specification; Check <Date Option> Parameter
  2623.      ─────────────────────────────────────────────────────────
  2624.      You have entered an invalid date in the /D= or /SETD= option.  You may
  2625.      have entered  an invalid date range (i.e.,  /D=1-1-93 - 1-1-92).  Note
  2626.      that you cannot use the "/" slash character within date specifications
  2627.      (i.e.,  specify  "1-1-93",  and  NOT  "1/1/93").    Please  refer   to
  2628.      "/D= Option", page 16, 18, for additional information.
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.      ══════════════════════════════════════════════════════════════════════
  2636.      LOCATE: version 2.10                                           page 42
  2637.  
  2638.  
  2639.      Invalid Attribute Option; Check <Attribute Option> Parameter
  2640.      ────────────────────────────────────────────────────────────
  2641.      You have entered an invalid or  missing attribute value in the /A=  or
  2642.      /SETA= option.   Note that you need only  enter the first character of
  2643.      the attribute(s), i.e.,  "A", "R", "S", and/or  "H".  Please refer  to
  2644.      "/A= Option", page 21, for additional information.
  2645.  
  2646.      Invalid Volume/Drive List; Check /V Parameter
  2647.      ─────────────────────────────────────────────
  2648.      You have  entered an  invalid volume/  drive list  in the  /V= option.
  2649.      Please refer to "/V= Option", page 12, for additional information.
  2650.  
  2651.      Memory Allocation Error Loading During PATH Load
  2652.      ────────────────────────────────────────────────
  2653.      LOCATE  could  not  allocate  memory  to  parse  the PATH  environment
  2654.      variable.  If  you are very low  on memory, release memory  and re-try
  2655.      the  operation.   If you  cannot  resolve this  error, please  contact
  2656.      System Solutions Company.
  2657.  
  2658.      Memory Allocation Error During Parse
  2659.      ────────────────────────────────────
  2660.      See "Memory Allocation Error Loading During PATH Load".
  2661.  
  2662.      Memory Allocation Error Loading During /TEXT Allocation [<#> lines]
  2663.      ───────────────────────────────────────────────────────────────────
  2664.      See "Memory  Allocation Error  Loading During PATH  Load".   Note that
  2665.      this error usually results from  specifying a very large /TL### option
  2666.      value.   For most environments,  you should specify a  value between 0
  2667.      and 512.
  2668.  
  2669.      Missing File Specification
  2670.      ──────────────────────────
  2671.      You have not  entered a search specification.  You must, at a minimum,
  2672.      enter "." (to indicate "*.*").  This usually happens when you  enter a
  2673.      command  like  "LOCATE   /AGE=0",  and  you  simply  forget  the  file
  2674.      specification.
  2675.  
  2676.      No PATH Found; /PATH Option Not Available
  2677.      ─────────────────────────────────────────
  2678.      You have used the /PATH  option; however, no PATH environment variable
  2679.      could  be found.  If you do not  have a PATH environment variable, you
  2680.      should create one.   Please refer to your  DOS documentation for  more
  2681.      information.
  2682.  
  2683.      Not Enough Memory for /TEXT Option
  2684.      ──────────────────────────────────
  2685.      LOCATE  could  not allocate  memory  needed  to  scan files  for  text
  2686.      occurrences.  Also see  "Memory Allocation Error Loading During  /TEXT
  2687.      Allocation" above.   Note: LOCATE needs to  allocate approximately 8Kb
  2688.      of memory to perform the /TEXT operation.
  2689.  
  2690.  
  2691.  
  2692.  
  2693.      ══════════════════════════════════════════════════════════════════════
  2694.      LOCATE: version 2.10                                           page 43
  2695.  
  2696.  
  2697.      Operation Aborted
  2698.      ─────────────────
  2699.      This message is informational.   You have aborted (usually by pressing
  2700.      Ctrl-Break or Ctrl-C during the file scan).
  2701.  
  2702.      Owner Flag Not Available; No NetWare Servers Found
  2703.      ──────────────────────────────────────────────────
  2704.      You must  have IPX  protocol support  (i.e., IPX  or DOS  ODI) and  be
  2705.      attached to  a NetWare  Server running  Novell NetWare  2.1x - 3.x  in
  2706.      order to  use the  /O= or the  /SETO= option.   Refer to  your NetWare
  2707.      documentation for additional information.
  2708.  
  2709.      Owner Flag Not Available; /NONET Option In Use
  2710.      ──────────────────────────────────────────────
  2711.      You cannot use  the /O= or /SETO=  options while the /NONET  option is
  2712.      active.  If you did not specify /NONET on the command line, then it is
  2713.      in the LOCATE  environment variable.   See "Setting LOCATE  Defaults",
  2714.      page 7, for additional information.
  2715.  
  2716.      Unrecognized or Invalid Parameter: <Option>
  2717.      ───────────────────────────────────────────
  2718.      You  have  specified  a  command   or  option  that  LOCATE  does  not
  2719.      understand.  You should double  check spelling and re-try the command.
  2720.      For  a list  of legal  syntax for each  option, please  see "Alternate
  2721.      Option Specifications", page 38.
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.      ══════════════════════════════════════════════════════════════════════
  2752.      LOCATE: version 2.10                                           page 44
  2753.  
  2754.  
  2755.      Troubleshooting: Common Questions
  2756.      ═════════════════════════════════
  2757.      This section provides many common questions and tips.  Even if you are
  2758.      not having problems,  you may want to  browse this section.   The most
  2759.      common syntax mistakes are outlined here.
  2760.  
  2761.      When using /V= or /PATH with an owner option (/O=, /O !=, or /SET O=),
  2762.      one  or  more of  my  volumes/paths was  not  searched.   Why  was the
  2763.      path/volume removed from the search list by LOCATE?
  2764.  
  2765.           LOCATE removes invalid drives from  /V= or /PATH whenever any one
  2766.           of the following conditions occurs:
  2767.  
  2768.           1)   the volume is invalid (it does not exist)
  2769.           2)   the volume is a CD-ROM drive and no CD is loaded
  2770.           3)   the drive  letter  is  a  NetWare  SEARCH  MAP  drive  (only
  2771.                applicable to /V=; use /PATH to search SEARCH MAP's)
  2772.           4)   you  used an owner  option (/O=, /O  NOT=, /SET O=)  and the
  2773.                owner is not valid for the server's drive
  2774.  
  2775.      Why does LOCATE report that I do not have enough memory?
  2776.  
  2777.           LOCATE requires very little memory to operate (95 to 125 Kb).  If
  2778.           using the  /TL= option  on the  command  line or  in your  LOCATE
  2779.           environment  variable, then make sure that the specified value is
  2780.           between 0  and approximately  512.  If  you still  cannot resolve
  2781.           your  memory shortage,  contact  System Solutions  for assistance
  2782.           (see Appendix E, page 55).
  2783.  
  2784.      I am using  the following syntax  to search for all  *.* files in  the
  2785.      parent directory: "LOCATE .."  Why does LOCATE search for UTILS.*?
  2786.  
  2787.           You   forgot  the  file   specification.    You   should  specify
  2788.           "LOCATE ..\." for the desired result.
  2789.  
  2790.      I am using the /TEXT option and LOCATE just started searching a 115 Mb
  2791.      file.  I  do not  want to  search this file;  how can  I stop  LOCATE;
  2792.      ESCAPE, SpaceBar, or ENTER do not work?
  2793.  
  2794.           Press Control-Break or Control-C to stop the scan.  This type  of
  2795.           break always stops LOCATE quickly and aborts the scan.
  2796.  
  2797.      How can I save my SET LOCATE= defaults?
  2798.  
  2799.           The  easiest way  to save defaults  it to  place the  SET LOCATE=
  2800.           statement in  your  AUTOEXEC.BAT file.    This ensures  that  the
  2801.           variable will be set each time you  start your computer.  Use any
  2802.           editor (EDIT in DOS ver.5.0, for example) to edit C:\AUTOEXEC.BAT
  2803.           and place the SET LOCATE= statement anywhere in the file.
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.      ══════════════════════════════════════════════════════════════════════
  2810.      LOCATE: version 2.10                                           page 45
  2811.  
  2812.  
  2813.      Why does  the file  owner name display  as "---"  instead of  the real
  2814.      owner?
  2815.  
  2816.           LOCATE  uses "---"  to report  files with  no owner.   Note  that
  2817.           Novell's NDIR  command uses  "N/A" for the  same purpose.   Files
  2818.           usually  lose their owner information when  the original owner is
  2819.           deleted from  the bindery.  To view all  files with no owner, use
  2820.           the "/O=" option with no owner name, i.e., "LOCATE . /O=".
  2821.  
  2822.      Can LOCATE display the entire owner name (and not just the first three
  2823.      characters)?
  2824.  
  2825.           Because  of space restrictions,  LOCATE displays the  first three
  2826.           characters only (followed by a  plus "+" if more characters would
  2827.           normally  follow).   If this is  a problem  for you, use  the /LN
  2828.           option on the command line  or in the LOCATE environment variable
  2829.           (see "Setting LOCATE Defaults", page 7).
  2830.  
  2831.      Will LOCATE function properly with NetWare 4.0?
  2832.  
  2833.           LOCATE has not been tested under NetWare 4.0.  Even though Novell
  2834.           has  promised compatibility with  existing API's, you  should use
  2835.           caution when using LOCATE's  NetWare features (i.e., /SET OWNER=)
  2836.           in a 4.0 environment.  If you are operating in a multi-server 4.0
  2837.           environment, then you  should be aware that LOCATE  will only see
  2838.           the first eight (8) server attachments.
  2839.  
  2840.      How does  LOCATE  retrieve and  set NetWare  (owner) information;  why
  2841.      should I trust LOCATE with my NetWare bindery?
  2842.  
  2843.           LOCATE has been thoroughly tested in Novell NetWare environments.
  2844.           All NetWare interface code  is written using Novell  approved API
  2845.           calls (Application  Program Interfaces).   This is the  same code
  2846.           that exists  internally in  the NetWare tools  you use  every day
  2847.           (SYSCON, FCONSOLE, FILER, etc.).
  2848.  
  2849.           I know that some of you may have been burned with  commercial and
  2850.           shareware  utilities  that   promise  NetWare  functionality   or
  2851.           features.   I  assure you  that LOCATE  will perform  as promised
  2852.           under the supported NetWare environments.
  2853.  
  2854.      I used the  /V= option to  include a  drive in my  NetWare SEARCH  MAP
  2855.      list.   My search map is "S3:= X:.  [SERVER1\SYS: \PUBLIC]" and I used
  2856.      "/V=FGX".  Why did LOCATE remove the X: from the list?
  2857.  
  2858.           NetWare  SEARCH  MAP  drives  may  not be  included  in  the  /V=
  2859.           volume/drive listing.  Simply use  the /PATH option instead.  All
  2860.           SEARCH drives are in the DOS PATH environment variable.
  2861.  
  2862.  
  2863.  
  2864.  
  2865.  
  2866.  
  2867.      ══════════════════════════════════════════════════════════════════════
  2868.      LOCATE: version 2.10                                           page 46
  2869.  
  2870.  
  2871.      Why do I  always get the error  "Error Running Command..." when  I use
  2872.      the /RUN option?
  2873.  
  2874.           Unless  memory is very  tight, this error  is caused by  a bad or
  2875.           missing  command  interpreter.   Ensure that  you have  a COMSPEC
  2876.           environment variable that tells LOCATE where COMMAND.COM (or your
  2877.           command interpreter) is found  and what it  is called.  For  more
  2878.           information  on the  COMSPEC setting,  please refer  to  your DOS
  2879.           documentation.
  2880.  
  2881.      Why does LOCATE  always report  syntax errors  when I try  to use  the
  2882.      /DATE= or /SET DATE= options?
  2883.  
  2884.           You are probably  using slashes "/" in the date instead of dashes
  2885.           "-".     For   example,   "/D=02/01/93"   is   not   valid   (use
  2886.           "/D=02-01-93").   This is necessary since LOCATE delimits options
  2887.           by the forward slash "/" character.
  2888.  
  2889.      I used /DEL but the directories are still there; what happened?
  2890.  
  2891.           The current  version of LOCATE  does not remove  directories when
  2892.           using the  /DEL option to delete files.   To remove all files and
  2893.           directories  under a  path, use  the  popular shareware  utility,
  2894.           PRUNE.   Note  that MS-DOS  6.0 users may  use DELTREE  to remove
  2895.           files and directories.
  2896.  
  2897.      I used  /SET... but only  files were affected (not  directories); what
  2898.      happened?
  2899.  
  2900.           The  current  version  of LOCATE  does  not  SET  information for
  2901.           directories (only files are affected).
  2902.  
  2903.      I have a CD-ROM and the application software  requires that the CD-ROM
  2904.      drive be in the DOS PATH.  Why does LOCATE report errors when no CD is
  2905.      in the drive and I use the /PATH option?
  2906.  
  2907.           Your CD-ROM  drive is similar to a floppy  drive in that you must
  2908.           have a  CD mounted/installed before LOCATE can  access the drive.
  2909.           Either  remove the CD drive  from your PATH or leave  a CD in the
  2910.           drive at all times.
  2911.  
  2912.      When I  use  the /TEXT  option, I  always want  to  ignore case,  list
  2913.      occurrences, and  list offset  information; is there  any way  to keep
  2914.      LOCATE from asking every time?
  2915.  
  2916.           Use the SET LOCATE= environment  variable to list your  defaults.
  2917.           For /TEXT,  use /TL,  /[no]OCCUR,  and /[no]CASE.   See  "Setting
  2918.           LOCATE Defaults", page 7 for instructions.  For this example, use
  2919.           /NOCASE /OCCUR /TL100 (for 100 offset lines maximum).
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.      ══════════════════════════════════════════════════════════════════════
  2926.      LOCATE: version 2.10                                           page 47
  2927.  
  2928.  
  2929.      When would I want  to use the /### option to limit the number of files
  2930.      that LOCATE finds or sets?
  2931.  
  2932.           This option may be useful when LOCATE is used from within a batch
  2933.           file and you want to list and/or SET an option for a single  file
  2934.           or a specific  number of files.   In this case,  you may want  to
  2935.           specify the /AUTO option to suppress confirmation prompts.
  2936.  
  2937.      When would I  want to  use the /AUTO  option to suppress  confirmation
  2938.      prompts?
  2939.  
  2940.           Generally, /AUTO  is used  from within batch  files where  a pre-
  2941.           determined /SET  is being used  and confirmation prompts  are not
  2942.           necessary.  See the previous topic for more information.
  2943.  
  2944.      When using /TEXT= or /RUN=, my format line is all bunched together.  I
  2945.      specified "/RUN=browse &s  /c" and LOCATE is  using "/RUN=browse&s/c".
  2946.      Why are the spaces being removed?
  2947.  
  2948.           You  forgot the  surrounding double  quote marks  - "...".   When
  2949.           specifying the /TEXT= or /RUN=  format lines on the command line,
  2950.           surround  the  specification with  "  marks.   For  example,  the
  2951.           following command should be used:
  2952.  
  2953.           LOCATE . /C /RUN="browse &s /c"
  2954.  
  2955.           Note that  most users prefer  to simply specify "/RUN"  and allow
  2956.           LOCATE  to prompt for the format line.   In this case, no " marks
  2957.           are required.
  2958.  
  2959.      What can I expect from future releases of LOCATE?
  2960.  
  2961.           It greatly  depends on  YOU!  Your  feedback and  suggestions are
  2962.           always  given serious  considerations.   Please  write or  E-mail
  2963.           anytime.  You do not have to  be a registered user.  No questions
  2964.           are asked.  See Appendix E, page 55, for more information.
  2965.  
  2966.           A few of the planned enhancements are outlined here:
  2967.  
  2968.           -    More NetWare features; NetWare 4.0 support
  2969.           -    Support for ZIP (and other archive formats) files
  2970.           -    Enhanced /DIR support (for /DEL and /SET options)
  2971.           -    Full screen dialog windows for options and easy to use menus
  2972.           -    DOS and Windows versions
  2973.           -    Sort-able file listings that may be scrolled
  2974.           -    Search by file type (PKLite .EXE, Windows .EXE, dBASE, etc.)
  2975.           -    Ability to replace text (for /TEXT) with new text
  2976.  
  2977.  
  2978.  
  2979.  
  2980.  
  2981.  
  2982.  
  2983.      ══════════════════════════════════════════════════════════════════════
  2984.      LOCATE: version 2.10                                           page 48
  2985.  
  2986.  
  2987.                                        Appendix A: Registration Information
  2988.      ──────────────────────────────────────────────────────────────────────
  2989.  
  2990.      LOCATE is distributed as shareware.  You may use the shareware version
  2991.      for evaluation purposes only.  This shareware version of LOCATE is the
  2992.      complete working version of the program, not a crippled  or demo copy.
  2993.      Please  refer to  Appendix  B,  page 52,  for  distribution and  usage
  2994.      information.
  2995.  
  2996.      System Solutions  Company hereby grants  you a limited license  to use
  2997.      this software for evaluation purposes only for a  period not to exceed
  2998.      30 days.   If you  intend to continue  using LOCATE beyond  the 30-day
  2999.      evaluation  period,  then  you  MUST  register/purchase  the software.
  3000.      Registration instructions  are outlined  below.   Using this  software
  3001.      after  the  evaluation  period  has  ended  without  registering is  a
  3002.      violation of the terms of this limited license.
  3003.  
  3004.  
  3005.      How to Register
  3006.      ═══════════════
  3007.      To register  LOCATE, simply complete  and mail the  accompanying order
  3008.      form (see  the ORDER.DOC file)  with your payment to  System Solutions
  3009.      Company.    For questions  regarding  registration  procedures, please
  3010.      contact System  Solutions (see Appendix  E, page 55,  for instructions
  3011.      and information).
  3012.  
  3013.  
  3014.      Cost of Registration
  3015.      ════════════════════
  3016.      You may purchase/license LOCATE for use by a single user or for use in
  3017.      a network environment by  multiple users (i.e., a site license).  Note
  3018.      that very small  network environments (less than four  users) may wish
  3019.      to purchase multiple single user licenses.
  3020.  
  3021.           - Single user license (each)  . . . . . . . . . . . . . . . . $15
  3022.  
  3023.           - Network license (up to 50 users max)  . . . . . . . . . . . $60
  3024.  
  3025.           To license more than 50 users in a network  environment, the cost
  3026.           is $60 (for  the first 50 users)  plus $10 per 25  users over 50.
  3027.           To calculate the  cost for  your environment,  use the  following
  3028.           formula (for 'UserCount', use the next higher multiple of 25):
  3029.  
  3030.                                      UserCount - 50
  3031.                Total Cost = $60 + ( ---------------- x $10 )
  3032.                                             25
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.      ══════════════════════════════════════════════════════════════════════
  3042.      LOCATE: version 2.10                                           page 49
  3043.  
  3044.  
  3045.           Example Network License Options:
  3046.  
  3047.           10 users       $60       standard network license
  3048.           60 users       $70       $60 plus 1 group of 25 at $10/each
  3049.           100 users      $80       $60 plus 2 groups of 25 at $10/each
  3050.           200 users      $120      $60 plus 6 groups of 25 at $10/each
  3051.           300 users      $160      $60 plus 10 groups of 25 at $10/each
  3052.           500 users      $240      $60 plus 18 groups of 25 at $10/each
  3053.  
  3054.      ┌─────────────────────────[ N O T E ]───────────────────────────────┐
  3055.      │   If you wish to license more than 500 users, please contact      │▄
  3056.      │   System Solutions and inquire about large site license options   │█
  3057.      │   (see Appendix E, page 55, for instructions and information).    │█
  3058.      └───────────────────────────────────────────────────────────────────┘█
  3059.        ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  3060.  
  3061.  
  3062.      Upgrade Information
  3063.      ═══════════════════
  3064.      To upgrade  a single  user license  to a  network site  license or  to
  3065.      increase the number of users in a network license, you must simply pay
  3066.      the difference  between you  original purchase  price and  the current
  3067.      price of the desired license.
  3068.  
  3069.      For example, assume  you purchased a standard network  site license of
  3070.      version  2.11 for $60.  To later expand your license to 100 users, you
  3071.      must pay  $20 (assuming the  current cost for 100  users is $80).   To
  3072.      upgrade a single user license to a standard network  license, you must
  3073.      pay $45 ($60 less the $15).
  3074.  
  3075.      If your license  requirements do not change,  the there is no  cost to
  3076.      upgrade  when new  versions  of LOCATE  are released.    See the  next
  3077.      section, "Benefits of Registration", for more information.
  3078.  
  3079.  
  3080.      Benefits of Registration
  3081.      ════════════════════════
  3082.      As a registered user, you will receive the following:
  3083.  
  3084.      -    The most current version of the LOCATE program.  I am  constantly
  3085.           looking for ways  to improve this software;  registration ensures
  3086.           that you have the latest release.
  3087.  
  3088.      -    Free lifetime technical support via mail and E-mail (through most
  3089.           popular  services,  including  CompuServe  and  America  Online).
  3090.           Support is available  to registered users only.   See Appendix E,
  3091.           page 55, for instructions on contacting System Solutions Company.
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.      ══════════════════════════════════════════════════════════════════════
  3100.      LOCATE: version 2.10                                           page 50
  3101.  
  3102.  
  3103.      -    Free lifetime  upgrades.   All  registered  users of  LOCATE  are
  3104.           licensed to use the most  current version of the program forever.
  3105.           LOCATE's system  files are made available on many online services
  3106.           and registered  users  may download  upgrades without  additional
  3107.           license fees.   Note that if you  purchase a network license  and
  3108.           your user count increases, you must purchase additional licenses.
  3109.           The same applies to single users upgrading to a network license.
  3110.  
  3111.           Note that  System Solutions will  mail upgrades to users  that do
  3112.           not have  access to online  services where  LOCATE is posted.   A
  3113.           processing and shipping fee will be charged.
  3114.  
  3115.      -    Notification of significant  upgrades and bug-fixes.   When a new
  3116.           release is available, registered  users are notified via  mail or
  3117.           E-mail.   The notification includes  an order  form (for  mail-in
  3118.           update)  and  instructions for  downloading updates  from popular
  3119.           online services.
  3120.  
  3121.  
  3122.  
  3123.  
  3124.  
  3125.  
  3126.  
  3127.  
  3128.  
  3129.  
  3130.  
  3131.  
  3132.  
  3133.  
  3134.  
  3135.  
  3136.  
  3137.  
  3138.  
  3139.  
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.      ══════════════════════════════════════════════════════════════════════
  3158.      LOCATE: version 2.10                                           page 51
  3159.  
  3160.  
  3161.                                    Appendix B: Limited Distribution License
  3162.      ──────────────────────────────────────────────────────────────────────
  3163.  
  3164.      You are encouraged to freely copy and distribute LOCATE subject to the
  3165.      following restrictions and provisions:
  3166.  
  3167.      The "LOCATE  System"  consists  of  all  files  and  documentation  as
  3168.      outlined in  the PACKING.LST file.  If any files listed in PACKING.LST
  3169.      are missing (or if  PACKING.LST is missing), then the LOCATE system is
  3170.      not complete  and  may NOT  be  distributed.   If  the system  is  not
  3171.      complete, please contact System Solutions (see Appendix E, page 55) to
  3172.      obtain a complete distribution system.
  3173.  
  3174.  
  3175.      Important Provisions
  3176.      ════════════════════
  3177.      -    The LOCATE system, including all program files and documentation,
  3178.           must not be  modified in any way without  express written consent
  3179.           of Donald Ray Hutchins, System Solutions Company.
  3180.  
  3181.      -    The documentation  files may  not be reproduced,  in whole  or in
  3182.           part, without  express written  consent of  Donald Ray  Hutchins,
  3183.           System Solutions Company.
  3184.  
  3185.      -    The LOCATE system must be distributed in it's entirety (as stated
  3186.           above).
  3187.  
  3188.      -    The LOCATE system is shareware and it  must be listed/categorized
  3189.           as such in  all distribution advertisements  and documents.   The
  3190.           LOCATE  system must  not  be categorized  as  "public domain"  or
  3191.           "freeware".
  3192.  
  3193.      -    The  LOCATE  system   may  not  be  sold  or   leased  under  any
  3194.           circumstances.   Shareware distributors may  charge a  reasonable
  3195.           distribution  fee for  this  software.    Distributors  must  not
  3196.           represent that  they are selling  the "software" itself.   Please
  3197.           ensure  that  customers  understand  the   difference  between  a
  3198.           distribution fee and a registration fee.
  3199.  
  3200.      -    LOCATE may not be modified, decompiled, disassembled, or reverse-
  3201.           engineered in any way.
  3202.  
  3203.      System Solutions  Company reserves  the right  to revoke  distribution
  3204.      privileges from any vendor.
  3205.  
  3206.      All rights not expressly granted here are reserved by System Solutions
  3207.      Company.  If you have  questions regarding this policy, please contact
  3208.      System Solutions immediately (see Appendix E, page 55).
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.      ══════════════════════════════════════════════════════════════════════
  3216.      LOCATE: version 2.10                                           page 52
  3217.  
  3218.  
  3219.                                        Appendix C: Description of Shareware
  3220.      ──────────────────────────────────────────────────────────────────────
  3221.  
  3222.      LOCATE is distributed as shareware.  It is not a public domain program
  3223.      (it  is  not  free).    Please  refer  to Appendix  A  (page  49)  for
  3224.      Registration  and Appendix  B  (page 52)  for  Distribution and  usage
  3225.      provisions.
  3226.  
  3227.      Shareware is  a marketing method,  not a type  of software.   It gives
  3228.      users a  legal but limited trial  period to evaluate a  program before
  3229.      purchase.  If  you continue to use  this program after a  30-day trial
  3230.      period has ended, you must register/purchase the program.
  3231.  
  3232.      Shareware,  like commercially  distributed  software,  is produced  by
  3233.      professional programmers.   And  just like  commercial programs,  many
  3234.      shareware programs are  very good, while others  are not useful.   The
  3235.      important difference between shareware and commercial software is that
  3236.      with shareware, you know if it will be useful to you BEFORE you  spend
  3237.      your money.
  3238.  
  3239.      Shareware benefits  you, the  software user, because  you get  to test
  3240.      drive the software on your system and under  your environment in order
  3241.      to  determine  whether  the   software  meets  your  needs   and  your
  3242.      expectations.  Before spending a  single dollar, you can determine for
  3243.      yourself  if the software  will satisfy YOUR  requirements.  Shareware
  3244.      benefits program authors and developers because we are able to get our
  3245.      products  into  your hands  without  incurring  many of  the  expenses
  3246.      associated with  marketing, promoting,  and distributing  a commercial
  3247.      software application.
  3248.  
  3249.      The  shareware  system  and  the  continued  availability  of  quality
  3250.      shareware products depend on your support.   It is a fair system where
  3251.      we  all can  benefit.   I  encourage you  to  take an  active  role in
  3252.      supporting the shareware  concept.  When you find  a shareware product
  3253.      that is useful, register the software as required by the author.  Most
  3254.      shareware programs offer a number of  benefits when you register.   In
  3255.      addition, your registration fees will ensure that support for existing
  3256.      programs and development of new programs and enhancements is possible.
  3257.  
  3258.      LOCATE  was developed  by a  member  of the  Association of  Shareware
  3259.      Professionals (ASP).   Look for the ASP member notice in the shareware
  3260.      products that you  obtain; it  is a symbol  of commitment to  quality,
  3261.      support, and professionalism in software development and distribution.
  3262.      Please see Appendix D, page 54, for more information on the ASP.
  3263.  
  3264.      Register LOCATE and support the shareware system!
  3265.  
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273.      ══════════════════════════════════════════════════════════════════════
  3274.      LOCATE: version 2.10                                           page 53
  3275.  
  3276.  
  3277.                      Appendix D: The Association of Shareware Professionals
  3278.      ──────────────────────────────────────────────────────────────────────
  3279.  
  3280.      The Association of Shareware Professionals (ASP) was formed in 1987 to
  3281.      inform users  about the shareware  marketing method, to foster  a high
  3282.      degree of  professionalism among shareware  authors, and to  provide a
  3283.      forum  through which  ASP members  may  communicate, share  ideas, and
  3284.      learn from each other.
  3285.  
  3286.      ASP  members' shareware  meets  additional  quality  standards  beyond
  3287.      ordinary shareware.   Members' programs must be  fully functional (not
  3288.      crippled, demo,  or out-of-date versions); program  documentation must
  3289.      be  complete and  must  clearly  state the  registration  fee and  the
  3290.      benefits received for registering;  members must provide free  mail or
  3291.      telephone support  for a minimum  of three months  after registration;
  3292.      and members must meet  other guidelines which help to insure  that you
  3293.      as  a  user receive  good  value for  your  money and  are  dealt with
  3294.      professionally.
  3295.  
  3296.  
  3297.                            ┌─────────┐
  3298.                      ┌─────┴───┐     │               (R)
  3299.                    ──│         │o    │──────────────────
  3300.                      │   ┌─────┴╨──┐ │  Association of
  3301.                      │   │         │─┘  Shareware
  3302.                      └───│    o    │    Professionals
  3303.                    ──────│    ║    │────────────────────
  3304.                          └────╨────┘    MEMBER
  3305.  
  3306.      Donald  Ray Hutchins  is  a  member of  the  Association of  Shareware
  3307.      Professionals  (ASP).   ASP  wants  to make  sure  that the  shareware
  3308.      principle  works   for  you.    If   you  are  unable  to   resolve  a
  3309.      shareware-related problem with an ASP member by contacting  the member
  3310.      directly, ASP may be  able to help.   The ASP  Ombudsman can help  you
  3311.      resolve a dispute or problem with an  ASP member, but does not provide
  3312.      technical  support for  members' products.   Please  write to  the ASP
  3313.      Ombudsman at 545 Grover Road, Muskegon,  MI 49442 or send a CompuServe
  3314.      message via CompuServe MAIL to ASP Ombudsman 70007,3536.
  3315.  
  3316.  
  3317.  
  3318.  
  3319.  
  3320.  
  3321.  
  3322.  
  3323.  
  3324.  
  3325.  
  3326.  
  3327.  
  3328.  
  3329.  
  3330.  
  3331.      ══════════════════════════════════════════════════════════════════════
  3332.      LOCATE: version 2.10                                           page 54
  3333.  
  3334.  
  3335.                             Appendix E: Contacting System Solutions Company
  3336.      ──────────────────────────────────────────────────────────────────────
  3337.  
  3338.      To  contact  System  Solutions Company  for  support,  information, or
  3339.      feedback, please write to me at the address below.  You may contact me
  3340.      by phone (evenings only EST, please) at the number  listed; please use
  3341.      mail or E-mail (see below) when possible.
  3342.  
  3343.           Donald Ray Hutchins
  3344.           System Solutions Company
  3345.           4409 Ansley Drive
  3346.           Winston-Salem, NC 27107-7671
  3347.           (919) 788-9656
  3348.  
  3349.      The quickest way  to contact me is  generally via E-mail (if  you have
  3350.      easy access to an online service).  I usually check messages  at least
  3351.      twice a week on all services.
  3352.  
  3353.           CompuServe ID:      72064,1052
  3354.  
  3355.           Internet:           72064.1052@compuserve.com
  3356.  
  3357.           AT&T Mail:          MHS!CSMAIL!72064,1052
  3358.  
  3359.           MCI Mail:           To:  Donald R. Hutchins
  3360.                               EMS: CompuServe
  3361.                               MBX: 72064,1052
  3362.  
  3363.           America Online ID:  DrHutchins
  3364.  
  3365.           Prodigy:            72064,1052@compuserve.com
  3366.  
  3367.      If you do not currently have access  to these services and you have  a
  3368.      pressing question  or problem that  cannot wait for postal  mail, then
  3369.      use the phone number above.  Please call during evening hours (EST).
  3370.  
  3371.  
  3372.      Comments and Suggestions
  3373.      ════════════════════════
  3374.      I encourage  feedback and bug-reports  from ALL users,  registered and
  3375.      un-registered  -- NO  QUESTIONS ASKED.    If you  have suggestions  or
  3376.      criticisms for  LOCATE (or any  product developed by  System Solutions
  3377.      Company), please contact me anytime!
  3378.  
  3379.      If you find  a bug in this  software, a mis-spelling  or error in  the
  3380.      documentation, etc. then please let me know as soon as possible.
  3381.  
  3382.  
  3383.  
  3384.  
  3385.  
  3386.  
  3387.  
  3388.  
  3389.      ══════════════════════════════════════════════════════════════════════
  3390.      LOCATE: version 2.10                                           page 55
  3391.  
  3392.  
  3393.                                       Appendix F: Trademarks and Copyrights
  3394.      ──────────────────────────────────────────────────────────────────────
  3395.  
  3396.  
  3397.      LOCATE is Copyright (c) 1993, Donald Ray Hutchins, System Solutions.
  3398.  
  3399.      PRUNE is Copyright (c) 1992, Donald Ray Hutchins, System Solutions.
  3400.  
  3401.      IBM-PC/AT and PC-DOS are registered trademarks of IBM Corporation.
  3402.  
  3403.      MS-DOS is a registered trademark of Microsoft Corporation.
  3404.  
  3405.      NetWare and Novell are registered trademarks of Novell, Incorporated.
  3406.  
  3407.      Norton Utilities is a registered trademark of Symantec Corporation.
  3408.  
  3409.      PC Tools is a registered trademark of Central Point Software.
  3410.  
  3411.  
  3412.  
  3413.  
  3414.  
  3415.  
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423.  
  3424.  
  3425.  
  3426.  
  3427.  
  3428.  
  3429.  
  3430.  
  3431.  
  3432.  
  3433.  
  3434.  
  3435.  
  3436.  
  3437.  
  3438.  
  3439.  
  3440.  
  3441.  
  3442.  
  3443.  
  3444.  
  3445.  
  3446.  
  3447.      ══════════════════════════════════════════════════════════════════════
  3448.      LOCATE: version 2.10                                           page 56
  3449.  
  3450.  
  3451.